
6 Mar
2002
6 Mar
'02
2:48 a.m.
"Zhe Fu"
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