
16 Sep
2007
16 Sep
'07
2:08 a.m.
Hi
Monomorphism restriction? Replacing fold with foldRegsUsed would work because there's a type signature for foldRegsUsed.
That looks like it. Another solution would be:
fold = foldRegsUsed
becomes:
fold x = foldRegsUsed x
Now the monomorphism restriction doesn't kick in because fold has an explicit argument. Thanks Neil