[commit: ghc] master: Improve error message for Typeable k (T k) (ceb3c84)

git at git.haskell.org git at git.haskell.org
Fri Jun 26 16:53:31 UTC 2015


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

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

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

commit ceb3c8448dfba23aa98a710f846304158c1c584b
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Jun 26 16:00:19 2015 +0100

    Improve error message for Typeable k (T k)
    
    GHC can't yest build a TypeRep for a type involving kind variables.
    (We await kinds = types for that.)  But the error message was terrible,
    as fixing #10524 reminded me.
    
    This improves it a lot.


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

ceb3c8448dfba23aa98a710f846304158c1c584b
 compiler/typecheck/TcErrors.hs                     | 32 +++++++++++-----------
 .../tests/annotations/should_fail/annfail08.stderr | 10 +++----
 .../tests/deriving/should_fail/drvfail007.stderr   |  4 +--
 testsuite/tests/driver/T2182.stderr                | 20 ++++++--------
 .../tests/ghci.debugger/scripts/break003.stderr    |  5 ++--
 testsuite/tests/ghci/scripts/Defer02.stderr        |  6 ++--
 testsuite/tests/ghci/scripts/T2182ghci.stderr      | 25 +++++++----------
 .../should_fail/AnnotatedConstraint.stderr         |  5 ++--
 testsuite/tests/rebindable/rebindable6.stderr      | 12 ++++----
 .../tests/typecheck/should_fail/T2846b.stderr      |  5 ++--
 testsuite/tests/typecheck/should_fail/T6022.stderr |  3 +-
 .../tests/typecheck/should_fail/T9858a.stderr      |  2 +-
 .../tests/typecheck/should_fail/T9858b.stderr      |  2 +-
 testsuite/tests/typecheck/should_fail/T9999.stderr |  7 ++---
 .../should_fail/TcStaticPointersFail02.stderr      |  2 +-
 .../tests/typecheck/should_fail/tcfail046.stderr   |  6 ++--
 16 files changed, 65 insertions(+), 81 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 ceb3c8448dfba23aa98a710f846304158c1c584b


More information about the ghc-commits mailing list