ApiAnnotations tweaks
authorAlan Zimmerman <alan.zimm@gmail.com>
Wed, 27 May 2015 15:50:55 +0000 (17:50 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Wed, 27 May 2015 15:50:55 +0000 (17:50 +0200)
commitc5911479f295242e16e396eb5d1369f2e4ce8de0
treeec8f94e9d1c75bcdeb9bae2364eaac53cb33db0d
parent388448bcc2e363d1913b5132a36ac7aaa20eafc0
ApiAnnotations tweaks

Summary:
A collection of minor updates for the API Annotations.

1. The annotations for the implicity parameter is disconnected in the
   following

    type MPI = ?mpi_secret :: MPISecret

2. In the following, the annotation for one of the commas is disconeected.

    mkPoli = mkBila . map ((,,(),,()) <$> P.base <*> P.pos <*> P.form)

3. In the following, the annotation for the parens becomes disconnected

    data MaybeDefault v where
        SetTo :: forall v . ( Eq v, Show v ) => !v -> MaybeDefault v
        SetTo4 :: forall v a. (( Eq v, Show v ) => v -> MaybeDefault v
                                                -> a -> MaybeDefault [a])

Test Plan: ./validate

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: bgamari, thomie, mpickering

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

GHC Trac Issues: #10399
14 files changed:
compiler/ghc.mk
compiler/hsSyn/HsTypes.hs
compiler/parser/ApiAnnotation.hs
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs
testsuite/tests/ghc-api/annotations/.gitignore
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T10399.stderr [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/T10399.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test10399.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T
testsuite/tests/ghc-api/annotations/exampleTest.stdout
testsuite/tests/ghc-api/annotations/parseTree.stdout
testsuite/tests/ghc-api/annotations/t10399.hs [new file with mode: 0644]