[Haskell-beginners] Inconsistencies in type inference
David Virebayre
dav.vire+haskell at gmail.com
Tue Jun 25 13:36:26 CEST 2013
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
More information about the Beginners
mailing list