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