API Annotations: AnnTilde missing
authorAlan Zimmerman <alan.zimm@gmail.com>
Fri, 1 Jan 2016 16:59:52 +0000 (18:59 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Fri, 1 Jan 2016 18:34:45 +0000 (20:34 +0200)
commit0b8dc7d4d5b26e184a7698e22f9fe7d8ee3c90d4
tree00e2f47d589cc9ffc8d41af5ca345cc75c9f31d2
parentf3cc34568b13abb29de7b54a5f657681e9e116ca
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
compiler/parser/Lexer.x
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T11321.stderr [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/T11321.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test11321.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T