16 Jun
2007
16 Jun
'07
2:48 p.m.
Hi, I have resumed my problem to the following. In this small example, the type checker always complains, and do need to write something similar that would use the functional dependency to infere the type b. class SomeClass a b | a -> b instance SomeClass Int Bool test :: SomeClass a b => a -> b test 1 = True Cheers, hugo