X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fusing.xml;h=88f9e5e60080cc91f75c5b7f99e5b801a043eb4c;hb=8f081b6469ca70363385be3ed2eac0965dab3be1;hp=82d7afe581ac3f9d3371e33b74a0fb11bdb58426;hpb=bb7d80b3b8d1396d481d3b24302bee24a3d92f71;p=ghc-hetmet.git diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 82d7afe..88f9e5e 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -1136,6 +1136,20 @@ f "2" = 2 + : + + + monomorphism restriction, warning + Have the compiler warn/inform you where in your source + the Haskell Monomorphism Restriction is applied. If applied silently + the MR can give rise to unexpected behaviour, so it can be helpful + to have an explicit warning that it is being applied. + + This warning is on by default. + + + + :