[Haskell-cafe] a Char->Char function?

Galchin Vasili vigalchin at gmail.com
Sat Dec 8 04:02:49 EST 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071208/f0909077/attachment.htm


More information about the Haskell-Cafe mailing list