[Haskell-cafe] Strange Type Error
jeanchristophe.mincke at gmail.com
Thu May 26 12:01:03 CEST 2011
Could anyone help me understand what is wrong with the definition of f2 in
the code below?
class C a b where
convert :: a -> b
convertToInt :: (C a Int) => a -> Int
convertToInt x = convert x
f1 x = convertToInt x
f2 = \x -> convertToInt x
f3 :: (C a Int) => a -> Int
f3 = \x -> convertToInt x
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe