[commit: ghc] wip/T16236: API Annotations: AnnAt disconnected for TYPEAPP (812338c)
git at git.haskell.org
git at git.haskell.org
Sat Jan 26 12:25:03 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16236
Link : http://ghc.haskell.org/trac/ghc/changeset/812338c26ac0327938663bf805d7f25f2c365275/ghc
>---------------------------------------------------------------
commit 812338c26ac0327938663bf805d7f25f2c365275
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date: Sat Jan 26 13:53:59 2019 +0200
API Annotations: AnnAt disconnected for TYPEAPP
For the code
type family F1 (a :: k) (f :: k -> Type) :: Type where
F1 @Peano a f = T @Peano f a
the API annotation for the first @ is not attached to a SourceSpan in
the ParsedSource
Closes #16236
>---------------------------------------------------------------
812338c26ac0327938663bf805d7f25f2c365275
compiler/parser/Parser.y | 3 +-
compiler/parser/RdrHsSyn.hs | 50 +++++++++------
testsuite/tests/ghc-api/annotations/Makefile | 4 ++
testsuite/tests/ghc-api/annotations/T16236.stdout | 73 ++++++++++++++++++++++
.../annotations/Test16236.hs} | 2 -
testsuite/tests/ghc-api/annotations/all.T | 2 +
.../parser/should_compile/DumpParsedAst.stderr | 4 +-
.../parser/should_compile/DumpRenamedAst.stderr | 4 +-
.../tests/typecheck/should_fail/T15807.stderr | 2 +-
9 files changed, 117 insertions(+), 27 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 812338c26ac0327938663bf805d7f25f2c365275
More information about the ghc-commits
mailing list