
Hello, I am writing a function(actually much more than this): bozo :: Char -> Char bozo 0x02 = 'a' ... However, I get complaints from ghc suggesting that I should add an "instance declaration (Num, Char). I (mistaking) thought I understood the Haskell class hierarchy and the associated constraints .. but apparently not .. => help please. Should Kind regards, Vasya

0x02 is not a Char, it's a numeric constant. Perhaps you meant '\x02' ?
On Dec 8, 2007 9:02 AM, Galchin Vasili
Hello,
I am writing a function(actually much more than this):
bozo :: Char -> Char bozo 0x02 = 'a' ...
However, I get complaints from ghc suggesting that I should add an "instance declaration (Num, Char). I (mistaking) thought I understood the Haskell class hierarchy and the associated constraints .. but apparently not .. => help please. Should
Kind regards, Vasya
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Galchin Vasili
-
Lennart Augustsson