[commit: ghc] ghc-8.0: Fix #11974 by adding a more smarts to TcDefaults. (37bfc6c)

git at git.haskell.org git at git.haskell.org
Thu Aug 25 15:04:31 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/37bfc6c91f02f6696aee875fbcc8acd0f7a6317b/ghc

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

commit 37bfc6c91f02f6696aee875fbcc8acd0f7a6317b
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Fri Apr 22 22:28:35 2016 -0400

    Fix #11974 by adding a more smarts to TcDefaults.
    
    Test cases:
      typecheck/should_compile/T11974
      typecheck/should_fail/T11974b
    
    (cherry picked from commit 9a34bf1985035858ece043bf38b47b6ff4b88efb)


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

37bfc6c91f02f6696aee875fbcc8acd0f7a6317b
 compiler/prelude/PrelNames.hs                      | 12 +++++++
 compiler/typecheck/TcDefaults.hs                   | 37 ++++++++++++----------
 compiler/typecheck/TcSimplify.hs                   |  2 +-
 testsuite/tests/typecheck/should_compile/T11974.hs |  5 +++
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 testsuite/tests/typecheck/should_fail/T11974b.hs   |  7 ++++
 .../tests/typecheck/should_fail/T11974b.stderr     | 15 +++++++++
 testsuite/tests/typecheck/should_fail/all.T        |  1 +
 8 files changed, 62 insertions(+), 18 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 37bfc6c91f02f6696aee875fbcc8acd0f7a6317b


More information about the ghc-commits mailing list