> If so, try working around the monomorphism restriction by changing  
 > from a pattern binding to a function binding.
 > 
 >      fold f = foldRegsUsed f

Brilliant.  I hadn't known about the monomorphism restriction.
Now I know it's a 'necessary evil'.  Thanks!


Norman
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to