<html><div style='background-color:'><DIV>
<P>Hello, everyone.<BR>I can't use any instance of type "Int". Every other type is working, but not Int and Float.</P>
<P>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.</P>
<P>
<HR>
</P>
<P><FONT face="Courier New, Courier, Monospace">class Boolable t where<BR> isTrue :: t -> Bool</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">instance Boolable Char where<BR> isTrue 'T' = True<BR> isTrue _ = False</FONT></P>
<P><FONT face="Courier New, Courier, Monospace">instance Boolable Int where<BR> isTrue 0 = False<BR> isTrue _ = True</FONT></P>
<P>
<HR>
</P>
<P><FONT face="Courier New, Courier, Monospace"></FONT> </P></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2728??PS=">Great deals on high-speed Internet access as low as $26.95.*<br></a> * Prices may vary by service area. </html>