
3 Sep
2008
3 Sep
'08
4:31 a.m.
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