
26 May
2011
26 May
'11
6:12 a.m.
On Thu, May 26, 2011 at 06:01, jean-christophe mincke
f1 x = convertToInt x f2 = \x -> convertToInt x
Absent useful things like error messages, I'll assume that you tripped over the monomorphism restriction. That is, when you have a name that doesn't take a direct parameter, there are additional constraints on that name's type. (The inner lambda is not considered for this purpose, so while in theory f1 and f2 should be identical, in practice they are not unless you use {-# LANGUAGE NoMonomorphismRestriction #-}.