[Haskell-cafe] Strange context reduction with partial application and casting

Brent Yorgey byorgey at seas.upenn.edu
Sat Jul 2 23:23:50 CEST 2011


On Sat, Jul 02, 2011 at 09:02:13PM +0200, Daniel Fischer wrote:
> 
> - disabling the monomorphism restriction
> :set -XNoMonomorphismRestriction
> let g = f

This is the recommended solution.  The confusion caused by the MR far
outweighs its occasional benefits.

-Brent



More information about the Haskell-Cafe mailing list