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
Showing
- compiler/typecheck/TcMatches.hs 6 additions, 2 deletionscompiler/typecheck/TcMatches.hs
- compiler/typecheck/TcRnTypes.hs 23 additions, 6 deletionscompiler/typecheck/TcRnTypes.hs
- testsuite/tests/driver/T4437.hs 0 additions, 1 deletiontestsuite/tests/driver/T4437.hs
- testsuite/tests/monadfail/MonadFailErrors.stderr 18 additions, 6 deletionstestsuite/tests/monadfail/MonadFailErrors.stderr
- testsuite/tests/rebindable/rebindable6.stderr 1 addition, 0 deletionstestsuite/tests/rebindable/rebindable6.stderr
Loading
Please register or sign in to comment