
25 Jun
2013
25 Jun
'13
2:45 p.m.
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. -Brent On Tue, Jun 25, 2013 at 01:36:26PM +0200, David Virebayre wrote:
The monomorphism restriction forces ghci to infer a default type.
Prelude> :set -XNoMonomorphismRestriction Prelude> let mul = (*) Prelude> :t mul mul :: Num a => a -> a -> a
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners