[project @ 2001-03-14 17:48:45 by simonmar]
authorsimonmar <unknown>
Wed, 14 Mar 2001 17:48:45 +0000 (17:48 +0000)
committersimonmar <unknown>
Wed, 14 Mar 2001 17:48:45 +0000 (17:48 +0000)
Fix a bug which has been causing all SPECIALISE pragmas to be thrown
away.

ghc/compiler/basicTypes/Var.lhs

index 062767a..b9d7cf7 100644 (file)
@@ -353,10 +353,12 @@ isGlobalId var = case varDetails var of
                   GlobalId _ -> True
                   other      -> False
 
+-- isExportedId means "don't throw this away"
 isExportedId var = case varDetails var of
-                       LocalId Exported -> True
-                       GlobalId _       -> True
-                       other            -> False
+                       LocalId Exported   -> True
+                       LocalId SpecPragma -> True
+                       GlobalId _         -> True
+                       other              -> False
 
 isSpecPragmaId var = case varDetails var of
                        LocalId SpecPragma -> True