Remove GHC's haskell98 dependency
[ghc-hetmet.git] / compiler / coreSyn / PprExternalCore.lhs
index 25394e2..e33c7a0 100644 (file)
@@ -9,7 +9,7 @@ import Encoding
 import ExternalCore
 
 import Pretty
-import Char
+import Data.Char
 
 instance Show Module where
   showsPrec _ m = shows (pmodule m)
@@ -56,10 +56,7 @@ ptdef (Data tcon tbinds cdefs) =
 ptdef (Newtype tcon coercion tbinds rep) =
   text "%newtype" <+> pqname tcon <+> pqname coercion 
    <+> (hsep (map ptbind tbinds)) $$ indent repclause
-       where repclause = case rep of
-                           Just ty -> char '=' <+> pty ty 
-                          Nothing -> empty
-             
+       where repclause = char '=' <+> pty rep
 
 pcdef :: Cdef -> Doc
 pcdef (Constr dcon tbinds tys)  =