
25 Jun
2013
25 Jun
'13
7:36 a.m.
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