ApiAnnotations : AnnComma missing in TupleSection
authorAlan Zimmerman <alan.zimm@gmail.com>
Fri, 8 May 2015 07:38:39 +0000 (09:38 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Fri, 8 May 2015 07:38:39 +0000 (09:38 +0200)
commit225df19a87d8de8245db84d558618f4824631acc
treee454eed3d69cfb80fd4e374194f7c375bd5d66a5
parentcc9b788e701f4bd3b97bfaec8ee78169ede0fa49
ApiAnnotations : AnnComma missing in TupleSection

Summary:
For the following code

  {-# LANGUAGE TupleSections #-}

  foo = do
    liftIO $ atomicModifyIORef ciTokens ((,()) . f)

the annotation is missing for the comma.

Test Plan: ./validate

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: bgamari, thomie

Differential Revision: https://phabricator.haskell.org/D834

GHC Trac Issues: #10280
compiler/parser/Parser.y
testsuite/tests/ghc-api/annotations/.gitignore
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T10280.stderr [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/T10280.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test10280.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T
testsuite/tests/ghc-api/annotations/t10280.hs [new file with mode: 0644]