[project @ 1997-08-25 22:27:30 by sof]
[ghc-hetmet.git] / ghc / compiler / typecheck / TcDefaults.lhs
index bb0557d..49f9421 100644 (file)
@@ -14,7 +14,6 @@ import HsSyn          ( HsDecl(..), TyDecl, ClassDecl, InstDecl, HsBinds,
                          DefaultDecl(..), HsType, IfaceSig,
                          HsExpr, HsLit, ArithSeqInfo, Fake, InPat)
 import RnHsSyn         ( RenamedHsDecl(..), RenamedDefaultDecl(..) )
-import TcHsSyn         ( TcIdOcc )
 
 import TcMonad
 import Inst            ( InstOrigin(..) )
@@ -22,10 +21,12 @@ import TcEnv                ( tcLookupClassByKey )
 import SpecEnv         ( SpecEnv )
 import TcMonoType      ( tcHsType )
 import TcSimplify      ( tcSimplifyCheckThetas )
+import TcType          ( TcIdOcc )
 
 import TysWiredIn      ( intTy, doubleTy, unitTy )
+import Type             ( SYN_IE(Type) )
 import Unique          ( numClassKey )
-import Pretty          ( ppStr, ppAboves )
+import Pretty          ( ptext, vcat )
 import ErrUtils                ( addShortErrLocLine )
 import Util
 \end{code}
@@ -63,14 +64,14 @@ tc_defaults decls
 
 
 dupDefaultDeclErr (DefaultDecl _ locn1 : dup_things) sty
-  = ppAboves (item1 : map dup_item dup_things)
+  = vcat (item1 : map dup_item dup_things)
   where
     item1
       = addShortErrLocLine locn1 (\ sty ->
-       ppStr "multiple default declarations") sty
+       ptext SLIT("multiple default declarations")) sty
 
     dup_item (DefaultDecl _ locn)
       = addShortErrLocLine locn (\ sty ->
-       ppStr "here was another default declaration") sty
+       ptext SLIT("here was another default declaration")) sty
 
 \end{code}