Improve crash message from applyTys and applyTypeToArgs
[ghc-hetmet.git] / compiler / types / Class.lhs
index 051bef1..fb7cab1 100644 (file)
@@ -17,8 +17,6 @@ module Class (
        classBigSig, classExtraBigSig, classTvsFds, classSCTheta
     ) where
 
-#include "HsVersions.h"
-
 import {-# SOURCE #-} TyCon    ( TyCon )
 import {-# SOURCE #-} TypeRep  ( PredType )
 
@@ -27,6 +25,7 @@ import Name
 import BasicTypes
 import Unique
 import Outputable
+import FastString
 \end{code}
 
 %************************************************************************
@@ -175,9 +174,9 @@ instance Outputable DefMeth where
 
 pprFundeps :: Outputable a => [FunDep a] -> SDoc
 pprFundeps []  = empty
-pprFundeps fds = hsep (ptext SLIT("|") : punctuate comma (map ppr_fd fds))
+pprFundeps fds = hsep (ptext (sLit "|") : punctuate comma (map ppr_fd fds))
               where
-                ppr_fd (us, vs) = hsep [interppSP us, ptext SLIT("->"), 
+                ppr_fd (us, vs) = hsep [interppSP us, ptext (sLit "->"), 
                                         interppSP vs]
 \end{code}