diff options
author | simonmar <unknown> | 2000-11-08 13:51:58 +0000 |
---|---|---|
committer | simonmar <unknown> | 2000-11-08 13:51:58 +0000 |
commit | 9c1c10c2783701db404035994b84af310021fccf (patch) | |
tree | 3204a772576141e506d70cc7d31aa205a3e7ca62 /ghc/compiler/utils/Outputable.lhs | |
parent | 369d3708cb84585d716cf927e763240c1142283b (diff) | |
download | haskell-9c1c10c2783701db404035994b84af310021fccf.tar.gz |
[project @ 2000-11-08 13:51:58 by simonmar]
Fixes for compiling w/ 4.08.1
Diffstat (limited to 'ghc/compiler/utils/Outputable.lhs')
-rw-r--r-- | ghc/compiler/utils/Outputable.lhs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ghc/compiler/utils/Outputable.lhs b/ghc/compiler/utils/Outputable.lhs index 9cb9fa8edc..2ec5c52289 100644 --- a/ghc/compiler/utils/Outputable.lhs +++ b/ghc/compiler/utils/Outputable.lhs @@ -287,6 +287,9 @@ instance Outputable Bool where instance Outputable Int where ppr n = int n +instance Outputable () where + ppr _ = text "()" + instance (Outputable a) => Outputable [a] where ppr xs = brackets (fsep (punctuate comma (map ppr xs))) @@ -294,8 +297,8 @@ instance (Outputable a, Outputable b) => Outputable (a, b) where ppr (x,y) = parens (sep [ppr x <> comma, ppr y]) instance Outputable a => Outputable (Maybe a) where - ppr Nothing = text "Nothing" - ppr (Just x) = text "Just" <+> ppr x + ppr Nothing = ptext SLIT("Nothing") + ppr (Just x) = ptext SLIT("Just") <+> ppr x -- ToDo: may not be used instance (Outputable a, Outputable b, Outputable c) => Outputable (a, b, c) where |