API Annotations: parens anns discarded for `(*)` operator
authorAlan Zimmerman <alan.zimm@gmail.com>
Sat, 2 Feb 2019 14:29:05 +0000 (16:29 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 8 Feb 2019 16:00:22 +0000 (11:00 -0500)
commit5e9888bd9c22a1315a703f638591b50e657317c4
tree5510eb74b731855569b38480df2af673680c09c6
parentcbfc9fcaa33c3b341830962906543dfca1dfedd7
API Annotations: parens anns discarded for `(*)` operator

The patch from https://phabricator.haskell.org/D4865 introduces

    go _ (HsParTy _ (dL->L l (HsStarTy _ isUni))) acc ann fix
      = do { warnStarBndr l
           ; let name = mkOccName tcClsName (if isUni then "★" else "*")
           ; return (cL l (Unqual name), acc, fix, ann) }

which discards the parens annotations belonging to the HsParTy.

Updates haddock submodule

Closes #16265
compiler/hsSyn/HsUtils.hs
compiler/parser/RdrHsSyn.hs
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/StarBinderAnns.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/StarBinderAnns.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T
utils/haddock