6.12.1. Switching off the Monomorphism Restriction¶
Default: on Since: 6.8.1
Prevents the compiler from applying the monomorphism restriction to bindings lacking explicit type signatures.
Haskell’s monomorphism restriction (see Section
the Haskell Report) can be completely switched off by
NoMonomorphismRestriction. Since GHC 7.8.1, the monomorphism
restriction is switched off by default in GHCi’s interactive options
(see Setting options for interactive evaluation only).