Add -fwarn-monomorphism-restriction (on by default) to warn when the MR is used
authorsimonpj@microsoft.com <unknown>
Wed, 25 Apr 2007 10:18:32 +0000 (10:18 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 25 Apr 2007 10:18:32 +0000 (10:18 +0000)
commit0560e796f1d813582e066a5f2bec2684c71df44d
treea19d5aca2dc828c863f71c5a9885e31587a3b890
parentd33c0b24a0306cc57161b7ed7ff2510d0b017b11
Add -fwarn-monomorphism-restriction (on by default) to warn when the MR is used

Users often trip up on the Dreaded Monomorphism Restriction.  This
warning flag tells you when the MR springs into action.

Currently it's on by default, but we could change that.
compiler/main/DynFlags.hs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcSimplify.lhs
docs/users_guide/flags.xml
docs/users_guide/using.xml