[commit: ghc] master: Reinstate monomorphism-restriction warnings (f8fbf38)

git at git.haskell.org git at git.haskell.org
Mon Oct 12 16:06:09 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f8fbf385b879fe177409a25cc9499275ea3dc45d/ghc

>---------------------------------------------------------------

commit f8fbf385b879fe177409a25cc9499275ea3dc45d
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Oct 12 16:23:56 2015 +0100

    Reinstate monomorphism-restriction warnings
    
    This patch is driven by Trac #10935, and reinstates the
    -fwarn-monomorphism-restriction warning.  It was first lost in 2010:
    d2ce0f52d "Super-monster patch implementing the new typechecker -- at
    last"
    
    I think the existing documentation is accurate; it is not even
    turned on by -Wall.
    
    I added one test.


>---------------------------------------------------------------

f8fbf385b879fe177409a25cc9499275ea3dc45d
 compiler/typecheck/TcBinds.hs                      |  2 +-
 compiler/typecheck/TcPatSyn.hs                     |  2 +-
 compiler/typecheck/TcRnDriver.hs                   | 14 ++++----
 compiler/typecheck/TcSimplify.hs                   | 37 ++++++++++++++--------
 testsuite/tests/typecheck/should_compile/T10935.hs |  5 +++
 .../should_compile/T10935.stderr}                  |  0
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 7 files changed, 38 insertions(+), 23 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc f8fbf385b879fe177409a25cc9499275ea3dc45d


More information about the ghc-commits mailing list