[project @ 2003-02-05 11:39:26 by simonpj]
authorsimonpj <unknown>
Wed, 5 Feb 2003 11:39:27 +0000 (11:39 +0000)
committersimonpj <unknown>
Wed, 5 Feb 2003 11:39:27 +0000 (11:39 +0000)
Type sigs and comments only

ghc/compiler/hsSyn/HsDecls.lhs
ghc/compiler/main/HscMain.lhs
ghc/compiler/typecheck/TcExpr.lhs

index ca0e324..1b7d389 100644 (file)
@@ -840,6 +840,7 @@ data RuleDecl name
        name                    -- Head of LHS
        CoreRule
 
+isSrcRule :: RuleDecl name -> Bool
 isSrcRule (HsRule _ _ _ _ _ _) = True
 isSrcRule other                       = False
 
index c532871..336e2ce 100644 (file)
@@ -717,8 +717,9 @@ initExternalPackageState
        where
           gated_decl = (gate_fn, (mod, IfaceRuleOut rdr_name rule))
           mod        = nameModule name
-          rdr_name   = nameRdrName name
-          gate_fn vis_fn = vis_fn name -- Load the rule whenever name is visible
+          rdr_name   = nameRdrName name        -- Seems a bit of a hack to go back
+                                               -- to the RdrName
+          gate_fn vis_fn = vis_fn name         -- Load the rule whenever name is visible
 
 initOrigNames :: OrigNameCache
 initOrigNames 
index 025c7dc..f134c78 100644 (file)
@@ -12,8 +12,7 @@ module TcExpr ( tcExpr, tcExpr_id, tcMonoExpr ) where
 import {-# SOURCE #-}  TcSplice( tcSpliceExpr, tcBracket )
 import HsSyn           ( HsReify(..), ReifyFlavour(..) )
 import TcType          ( isTauTy )
-import TcEnv           ( bracketOK, tcMetaTy, tcLookupGlobal,
-                         checkWellStaged, metaLevel )
+import TcEnv           ( bracketOK, tcMetaTy, checkWellStaged, metaLevel )
 import TcSimplify      ( tcSimplifyBracket )
 import Name            ( isExternalName )
 import qualified DsMeta