[commit: ghc] master: Move DFunUnfolding generation to TcInstDcls (db9e4eb)
git at git.haskell.org
git at git.haskell.org
Thu Mar 24 09:48:02 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/db9e4eb4e3fe916df7a69da1b211083ad6068aff/ghc
>---------------------------------------------------------------
commit db9e4eb4e3fe916df7a69da1b211083ad6068aff
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Mar 23 15:37:50 2016 +0000
Move DFunUnfolding generation to TcInstDcls
The desugarer had a fragile case to generate the Unfolding for a
DFun. This patch moves the unfolding generation to TcInstDcls, where
all the pieces are to hand.
Fixes Trac #11742
>---------------------------------------------------------------
db9e4eb4e3fe916df7a69da1b211083ad6068aff
compiler/deSugar/DsBinds.hs | 21 -----------
compiler/typecheck/TcInstDcls.hs | 42 +++++++++++++++++-----
testsuite/tests/roles/should_compile/T8958.stderr | 13 ++++---
testsuite/tests/simplCore/should_compile/T11742.hs | 8 +++++
testsuite/tests/simplCore/should_compile/all.T | 1 +
5 files changed, 52 insertions(+), 33 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 db9e4eb4e3fe916df7a69da1b211083ad6068aff
More information about the ghc-commits
mailing list