Jared Updike wrote:
http://www.haskell.org/onlinereport/decls.html#default-decls
http://www.haskell.org/tutorial/numbers.html#sect10.4
I still don't see, why it works for show but not for my_show.
On 1/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
[...]
class (Show a) => My_show a where
my_show :: a -> String
If I let this be
class My_show a where
my_show :: a -> String
instance My_show Int where
my_show a = show a ++ " :: Int"
instance My_show Integer where
my_show a = show a ++ " :: Integer"
What is the difference to the builtin Show class?
Christian
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe