Hello, everyone.
I can't use any instance of type "Int". Every other type is working, but not Int and Float.
In the following source, "isTrue 'T'" is working, but "isTrue 0" is not working, printing "Unresolved overloading - Type : (Num a, Boolable a) => Bool". Can you tell me how to solve this problem? Source codes are ONLY eight lines, so please help me! Thanks in advance.
class Boolable t where
isTrue :: t -> Bool
instance Boolable Char where
isTrue 'T' = True
isTrue _ = False
instance Boolable Int where
isTrue 0 = False
isTrue _ = True
Great deals on high-speed Internet access as low as $26.95.*
* Prices may vary by service area.
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
