X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FShow.lhs;h=85d4c7d89fa6feedd76e9aa8e7066c7e2706c6a5;hb=8dff2a318448b67a99627d54bbad1108010cb61e;hp=15e59136872acda3347d6ea7442b6a6f8a86d775;hpb=f08c9e5b2196cd8374ef38b4358be4d3822c1465;p=haskell-directory.git diff --git a/GHC/Show.lhs b/GHC/Show.lhs index 15e5913..85d4c7d 100644 --- a/GHC/Show.lhs +++ b/GHC/Show.lhs @@ -412,3 +412,32 @@ itos n# cs | otherwise = case chr# (ord# '0'# +# (n# `remInt#` 10#)) of { c# -> itos' (n# `quotInt#` 10#) (C# c# : cs) } \end{code} + +%********************************************************* +%* * +\subsection{Other instances} +%* * +%********************************************************* + +\begin{code} +instance Show Unknown 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 (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