Haskell-Cafe digest, Vol 1 #342 - 1 msg

Ketil Z. Malde ketil@ii.uib.no
06 Mar 2002 08:48:09 +0100


"Zhe Fu" <fuzhezheng@hotmail.com> 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