Remove unused Name imort, and add a comment explaining why pragmas are disabled
authorIan Lynagh <igloo@earth.li>
Tue, 14 Nov 2006 13:14:59 +0000 (13:14 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 14 Nov 2006 13:14:59 +0000 (13:14 +0000)
compiler/utils/UniqSet.lhs

index 7d83f6f..ec3d1d9 100644 (file)
@@ -22,8 +22,6 @@ module UniqSet (
 
 #include "HsVersions.h"
 
-import {-# SOURCE #-} Name ( Name )
-
 import Maybes          ( maybeToBool )
 import UniqFM
 import Unique          ( Unique, Uniquable(..) )
@@ -123,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