
15 Sep
2007
15 Sep
'07
10:08 p.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