[commit: ghc] master: Fix #8631. (674c969)

git at git.haskell.org git at git.haskell.org
Sun Feb 9 03:11:50 UTC 2014


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

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

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

commit 674c969c240632da70ed2928fa30c20a9a52e5dc
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Feb 8 22:09:12 2014 -0500

    Fix #8631.
    
    This patch allows turning on ImpredicativeTypes while type-checking
    the code generated by GeneralizedNewtypeDeriving. It does this
    by adding a field ib_extensions to InstBindings, informing the
    type-checker what extensions should be enabled while type-checking
    the instance.


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

674c969c240632da70ed2928fa30c20a9a52e5dc
 compiler/typecheck/TcDeriv.lhs               |   15 ++++++++++-----
 compiler/typecheck/TcEnv.lhs                 |    4 ++++
 compiler/typecheck/TcGenGenerics.lhs         |    3 +++
 compiler/typecheck/TcInstDcls.lhs            |    7 ++++++-
 testsuite/tests/deriving/should_run/T8631.hs |   22 ++++++++++++++++++++++
 testsuite/tests/deriving/should_run/all.T    |    2 +-
 6 files changed, 46 insertions(+), 7 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 674c969c240632da70ed2928fa30c20a9a52e5dc


More information about the ghc-commits mailing list