[commit: ghc] master: API Annotations: AnnTilde missing (0b8dc7d)

git at git.haskell.org git at git.haskell.org
Fri Jan 1 18:33:56 UTC 2016


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

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

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

commit 0b8dc7d4d5b26e184a7698e22f9fe7d8ee3c90d4
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Fri Jan 1 18:59:52 2016 +0200

    API Annotations: AnnTilde missing
    
    In T10689a.hs, the fragment
    
        data instance Sing (z :: [a])
          = z ~ '[] =>
            SNil
          | forall (m :: a)
                   (n :: [a]). z ~ (:) m n =>
            SCons (Sing m) (Sing n)
    
    ends up with the AnnTilde annotations for the two tildes not attached to
    the final AST.
    
    This patch moves the AnnTilde to the right place.
    
    Closes #11321


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

0b8dc7d4d5b26e184a7698e22f9fe7d8ee3c90d4
 compiler/parser/Lexer.x                           | 24 +++++++++++-
 compiler/parser/Parser.y                          |  8 ++--
 compiler/parser/RdrHsSyn.hs                       | 27 +++++++++-----
 testsuite/tests/ghc-api/annotations/Makefile      |  4 ++
 testsuite/tests/ghc-api/annotations/T11321.stderr |  3 ++
 testsuite/tests/ghc-api/annotations/T11321.stdout | 45 +++++++++++++++++++++++
 testsuite/tests/ghc-api/annotations/Test11321.hs  | 17 +++++++++
 testsuite/tests/ghc-api/annotations/all.T         |  1 +
 8 files changed, 114 insertions(+), 15 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 0b8dc7d4d5b26e184a7698e22f9fe7d8ee3c90d4


More information about the ghc-commits mailing list