summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser.y
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2022-04-01 14:33:55 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-08 13:56:27 -0400
commit3415981c36631115bc1d7fb5b51abfcc2932a12f (patch)
tree9546cc5fa07432c16aa60902250a1ad19a6c227c /compiler/GHC/Parser.y
parent85f4a3c9c2635e71a9ab0b723774ec993fefb93d (diff)
downloadhaskell-3415981c36631115bc1d7fb5b51abfcc2932a12f.tar.gz
HsUniToken for :: in GADT constructors (#19623)
One more step towards the new design of EPA. Updates the haddock submodule.
Diffstat (limited to 'compiler/GHC/Parser.y')
-rw-r--r--compiler/GHC/Parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Parser.y b/compiler/GHC/Parser.y
index 381af647ba..01c0459866 100644
--- a/compiler/GHC/Parser.y
+++ b/compiler/GHC/Parser.y
@@ -2371,7 +2371,7 @@ gadt_constr :: { LConDecl GhcPs }
-- Returns a list because of: C,D :: ty
-- TODO:AZ capture the optSemi. Why leading?
: optSemi con_list '::' sigtype
- {% mkGadtDecl (comb2A $2 $>) (unLoc $2) $4 [mu AnnDcolon $3] }
+ {% mkGadtDecl (comb2A $2 $>) (unLoc $2) (hsUniTok $3) $4 }
{- Note [Difference in parsing GADT and data constructors]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~