0x02 is not a Char, it's a numeric constant. Perhaps you meant '\x02' ? On Dec 8, 2007 9:02 AM, Galchin Vasili <[EMAIL PROTECTED]> wrote:
> 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 > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe > >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
