X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=GHC%2FShow.lhs;h=85d4c7d89fa6feedd76e9aa8e7066c7e2706c6a5;hb=242953c875b501e3cf43c49c5b72cb21712944ae;hp=7735ec6b7cdf581a5622552eb5239beb453239f4;hpb=1632c8ac355890e0309f90c4c8c7861469374897;p=ghc-base.git diff --git a/GHC/Show.lhs b/GHC/Show.lhs index 7735ec6..85d4c7d 100644 --- a/GHC/Show.lhs +++ b/GHC/Show.lhs @@ -421,5 +421,23 @@ itos n# cs \begin{code} instance Show Unknown where - show _ = "This is an untyped object. You can use seq to force its evaluation and then :print to recover its type" + show _ = "This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" + showList _ = ("This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" ++) + +instance Show (Unknown1 a) where + show _ = "This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" + showList _ = ("This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" ++) + +instance Show (Unknown2 a b) where + show _ = "This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" + showList _ = ("This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" ++) + +instance Show (Unknown3 a b c) where + show _ = "This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" + showList _ = ("This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" ++) + +instance Show (Unknown4 a b c d) where + show _ = "This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" + showList _ = ("This is an untyped, unevaluated computation. You can use seq to force its evaluation and then :print to recover its type" ++) + \end{code} \ No newline at end of file