[commit: ghc] ghc-8.0: Move DFunUnfolding generation to TcInstDcls (5f29b77)

git at git.haskell.org git at git.haskell.org
Thu Apr 21 15:22:23 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/5f29b77af4c96e0e7002fa8ad6a4446960ea6592/ghc

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

commit 5f29b77af4c96e0e7002fa8ad6a4446960ea6592
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
    
    (cherry picked from commit db9e4eb4e3fe916df7a69da1b211083ad6068aff)


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

5f29b77af4c96e0e7002fa8ad6a4446960ea6592
 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 5f29b77af4c96e0e7002fa8ad6a4446960ea6592


More information about the ghc-commits mailing list