"Zhe Fu" <[EMAIL PROTECTED]> writes:

> But when there is a type error: [...]
> How can I solve it? 

I often remove the type declaration, load the code in GHCi or Hugs,
and do a :t my_function.  The interpreter then tells me what /it/
thinks is the type, and quite often it is smarter than I am :-)

(You can also use :i, which is somewhat more informative)

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to