[commit: ghc] ghc-7.8: Fix #8631. (96f711b)
git at git.haskell.org
git at git.haskell.org
Mon Feb 17 09:15:03 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/96f711b4597f2cf704a226113760ab514b9554d3/ghc
>---------------------------------------------------------------
commit 96f711b4597f2cf704a226113760ab514b9554d3
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.
(cherry picked from commit 674c969c240632da70ed2928fa30c20a9a52e5dc)
>---------------------------------------------------------------
96f711b4597f2cf704a226113760ab514b9554d3
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 96f711b4597f2cf704a226113760ab514b9554d3
More information about the ghc-commits
mailing list