diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2018-06-18 10:18:21 +0200 |
---|---|---|
committer | Alan Zimmerman <alan.zimm@gmail.com> | 2018-06-19 13:19:20 +0200 |
commit | 676c5754e3f9e1beeb5f01e0265ffbdc0e6f49e9 (patch) | |
tree | b4a69137a0688a7e339ac5763e5e7ca6f538d190 /testsuite/tests/parser | |
parent | 83a7b1cf5f24eccc54016034d8a6d31dbbc2c263 (diff) | |
download | haskell-676c5754e3f9e1beeb5f01e0265ffbdc0e6f49e9.tar.gz |
Fix API Annotations for GADT constructors
Summary:
This patch completes the work for #14529 by making sure that all API
Annotations end up attached to a SrcSpan that appears in the final
ParsedSource.
Updates Haddock submodule
Test Plan: ./validate
Reviewers: goldfire, bgamari
Subscribers: rwbarton, thomie, mpickering, carter
GHC Trac Issues: #14529
Differential Revision: https://phabricator.haskell.org/D4867
Diffstat (limited to 'testsuite/tests/parser')
3 files changed, 16 insertions, 8 deletions
diff --git a/testsuite/tests/parser/should_compile/DumpParsedAst.stderr b/testsuite/tests/parser/should_compile/DumpParsedAst.stderr index a1765035fb..231017322f 100644 --- a/testsuite/tests/parser/should_compile/DumpParsedAst.stderr +++ b/testsuite/tests/parser/should_compile/DumpParsedAst.stderr @@ -33,7 +33,8 @@ ({ DumpParsedAst.hs:5:14-17 } (Unqual {OccName: Zero})) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon @@ -45,7 +46,8 @@ ({ DumpParsedAst.hs:5:21-24 } (Unqual {OccName: Succ})) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon diff --git a/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr b/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr index 673b391d7f..a1c412bd7d 100644 --- a/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr +++ b/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr @@ -86,7 +86,8 @@ (NoExt) ({ DumpRenamedAst.hs:6:14-17 } {Name: DumpRenamedAst.Zero}) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon @@ -97,7 +98,8 @@ (NoExt) ({ DumpRenamedAst.hs:6:21-24 } {Name: DumpRenamedAst.Succ}) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon @@ -349,7 +351,8 @@ (NoExt) [({ DumpRenamedAst.hs:16:3-5 } {Name: DumpRenamedAst.Nat})] - (False) + ({ DumpRenamedAst.hs:16:10-45 } + (False)) (HsQTvs (HsQTvsRn [{Name: f} diff --git a/testsuite/tests/parser/should_compile/T14189.stderr b/testsuite/tests/parser/should_compile/T14189.stderr index e8e5e6ad3d..e5aff5bf88 100644 --- a/testsuite/tests/parser/should_compile/T14189.stderr +++ b/testsuite/tests/parser/should_compile/T14189.stderr @@ -39,7 +39,8 @@ (NoExt) ({ T14189.hs:6:15-16 } {Name: T14189.MT}) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon @@ -55,7 +56,8 @@ (NoExt) ({ T14189.hs:6:24-25 } {Name: T14189.NT}) - (False) + ({ <no location info> } + (False)) [] (Nothing) (PrefixCon @@ -66,7 +68,8 @@ (NoExt) ({ T14189.hs:6:29 } {Name: T14189.F}) - (False) + ({ <no location info> } + (False)) [] (Nothing) (RecCon |