summaryrefslogtreecommitdiff
path: root/compiler/rename/RnSource.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2018-06-18 10:18:21 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2018-06-19 13:19:20 +0200
commit676c5754e3f9e1beeb5f01e0265ffbdc0e6f49e9 (patch)
treeb4a69137a0688a7e339ac5763e5e7ca6f538d190 /compiler/rename/RnSource.hs
parent83a7b1cf5f24eccc54016034d8a6d31dbbc2c263 (diff)
downloadhaskell-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 'compiler/rename/RnSource.hs')
-rw-r--r--compiler/rename/RnSource.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rename/RnSource.hs b/compiler/rename/RnSource.hs
index 98f8005381..bff6694d87 100644
--- a/compiler/rename/RnSource.hs
+++ b/compiler/rename/RnSource.hs
@@ -2007,7 +2007,7 @@ rnConDecl decl@(ConDeclH98 { con_name = name, con_ex_tvs = ex_tvs
all_fvs) }}
rnConDecl decl@(ConDeclGADT { con_names = names
- , con_forall = explicit_forall
+ , con_forall = L _ explicit_forall
, con_qvars = qtvs
, con_mb_cxt = mcxt
, con_args = args