[commit: ghc] master: Improve MonadFail errors by mentioning the pattern (3ee0c14)

git at git.haskell.org git at git.haskell.org
Wed Nov 18 11:54:00 UTC 2015


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

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

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

commit 3ee0c143a7e3e474c2c8511174702ccb8441f8d9
Author: David Luposchainsky <dluposchainsky at gmail.com>
Date:   Wed Nov 18 12:23:57 2015 +0100

    Improve MonadFail errors by mentioning the pattern
    
    Example error message:
    
        MonadFailErrors.hs:16:5: error:
            Could not deduce (MonadFail m)
              arising from a do statement
                           with the failable pattern ‘Just x’
    
    Depends on D1248
    
    Reviewers: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1489


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

3ee0c143a7e3e474c2c8511174702ccb8441f8d9
 compiler/typecheck/TcMatches.hs                  |  8 +++++--
 compiler/typecheck/TcRnTypes.hs                  | 29 +++++++++++++++++++-----
 testsuite/tests/driver/T4437.hs                  |  1 -
 testsuite/tests/monadfail/MonadFailErrors.stderr | 24 +++++++++++++++-----
 testsuite/tests/rebindable/rebindable6.stderr    |  1 +
 5 files changed, 48 insertions(+), 15 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 3ee0c143a7e3e474c2c8511174702ccb8441f8d9


More information about the ghc-commits mailing list