X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FUniqSet.lhs;h=ec3d1d998090e823b40a637f78caaa392106a693;hb=84923cc7de2a93c22a2f72daf9ac863959efae13;hp=129e333eb5dfc76a804276bb3b3bfbb48a93723f;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/compiler/utils/UniqSet.lhs b/compiler/utils/UniqSet.lhs index 129e333..ec3d1d9 100644 --- a/compiler/utils/UniqSet.lhs +++ b/compiler/utils/UniqSet.lhs @@ -1,4 +1,5 @@ % +% (c) The University of Glasgow 2006 % (c) The AQUA Project, Glasgow University, 1994-1998 % \section[UniqSet]{Specialised sets, for things with @Uniques@} @@ -21,8 +22,6 @@ module UniqSet ( #include "HsVersions.h" -import {-# SOURCE #-} Name ( Name ) - import Maybes ( maybeToBool ) import UniqFM import Unique ( Unique, Uniquable(..) ) @@ -122,6 +121,10 @@ mapUniqSet f (MkUniqSet set) = MkUniqSet (mapUFM f set) {-# SPECIALIZE addOneToUniqSet :: UniqSet Unique -> Unique -> UniqSet Unique #-} + +-- These next three specialisations disabled as importing Name creates a +-- loop, and getting the Uniquable Name instance in particular is tricky. + {- SPECIALIZE elementOfUniqSet :: Name -> UniqSet Name -> Bool , Unique -> UniqSet Unique -> Bool