[commit: ghc] ghc-8.0: Turn AThing into ATcTyCon, in TcTyThing (d60b89b)

git at git.haskell.org git at git.haskell.org
Sat Jan 9 17:48:42 UTC 2016


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

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

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

commit d60b89b9a0f5212e35210f6e66d119ca025f7a5c
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Jan 6 17:33:42 2016 +0000

    Turn AThing into ATcTyCon, in TcTyThing
    
    This change tidies up and simplifies (a bit) the knot-tying
    when kind-checking groups of type and class declarations.
    
    The trouble (shown by Trac #11356) was that we wanted an error message
    (a kind-mismatch) that involved a type mentioned a (AThing k), which
    blew up.
    
    Since we now seem to have TcTyCons, I decided to use them here.
    It's still not great, but it's easier to understand and more robust.
    
    (cherry picked from commit a5cea73c658888e01c162723d3e0e1439514ecdb)


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

d60b89b9a0f5212e35210f6e66d119ca025f7a5c
 compiler/typecheck/TcEnv.hs                        | 13 +++---
 compiler/typecheck/TcHsType.hs                     | 26 +++++++-----
 compiler/typecheck/TcRnTypes.hs                    |  9 +++--
 compiler/typecheck/TcTyClsDecls.hs                 | 46 +++++++++++-----------
 testsuite/tests/typecheck/should_fail/T11356.hs    |  6 +++
 .../tests/typecheck/should_fail/T11356.stderr      |  5 +++
 testsuite/tests/typecheck/should_fail/all.T        |  3 +-
 7 files changed, 62 insertions(+), 46 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 d60b89b9a0f5212e35210f6e66d119ca025f7a5c


More information about the ghc-commits mailing list