[Haskell-cafe] What monad am I in?

Yitzchak Gale gale at sefer.org
Wed Sep 3 04:31:35 EDT 2008


Henry Laxen wrote:
>> Have I, like Monsier Jourdain, been running in the IO monad all my
>> life, and didn't even know it?

Marc Weber wrote:
> Sure...
> But the ghci error message is another one:
> Try this:
> :set -XNoMonomorphismRestriction

And I highly recommend putting that line in your .ghci file.

There is controversy about whether MR is helpful in general.
It is on by default, so I just leave it that way, and it seems
to be fine.

But at the GHCi prompt, MR is definitely a nuisance.
Get rid of it there by using :set in your .ghci file.

Regards,
Yitz


More information about the Haskell-Cafe mailing list