[project @ 1997-06-13 04:11:47 by sof]
[ghc-hetmet.git] / ghc / compiler / deSugar / MatchLit.lhs
index c7e4bc1..4a429fe 100644 (file)
@@ -9,7 +9,12 @@
 module MatchLit ( matchLiterals ) where
 
 IMP_Ubiq()
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201
 IMPORT_DELOOPER(DsLoop)                -- break match-ish and dsExpr-ish loops
+#else
+import {-# SOURCE #-} Match
+import {-# SOURCE #-} DsExpr ( dsExpr )
+#endif
 
 import HsSyn           ( HsLit(..), OutPat(..), HsExpr(..), Fixity,
                          Match, HsBinds, Stmt(..), DoOrListComp, HsType, ArithSeqInfo )
@@ -17,14 +22,14 @@ import TcHsSyn              ( SYN_IE(TypecheckedHsExpr), SYN_IE(TypecheckedHsBinds),
                          SYN_IE(TypecheckedPat)
                        )
 import CoreSyn         ( SYN_IE(CoreExpr), SYN_IE(CoreBinding), GenCoreExpr(..), GenCoreBinding(..) )
-import Id              ( GenId {- instance Eq -} )
+import Id              ( GenId {- instance Eq -}, SYN_IE(Id) )
 
 import DsMonad
 import DsUtils
 
 import Literal         ( mkMachInt, Literal(..) )
 import Maybes          ( catMaybes )
-import Type            ( isPrimType )
+import Type            ( isPrimType, SYN_IE(Type) )
 import Util            ( panic, assertPanic )
 \end{code}