[Haskell-beginners] Inconsistencies in type inference

Brent Yorgey byorgey at seas.upenn.edu
Wed Jun 26 18:35:56 CEST 2013


On Wed, Jun 26, 2013 at 09:47:16AM +0200, Frerich Raabe wrote:
> Am 6/25/2013 8:45 PM, schrieb Brent Yorgey:
> >I should add that it is recommended to disable the monomorphism
> >restriction, by putting
> >
> >   :set -XNoMonomorphismRestriction
> >
> >in your .ghci file.  It has very dubious benefits and usually only
> >serves to confuse.
> 
> Hm, this is interesting. To me, most of the extensions are in the
> "crazy stuff only the profesionalls use" category - I successfully
> tip-toed around them so far. :-)
> 
> Are there other extensions which people would consider to be
> "generally good to have, unless you know a good reason *not* to
> enable them"?

I don't know of any others in that category.  But there are a few
others which are quite innocuous and if the compiler ever suggests you
might like to turn them on, you should not hesitate, in particular
FlexibleInstances and FlexibleContexts.

-Brent



More information about the Beginners mailing list