Commit fd686c43 authored by Alan Zimmerman's avatar Alan Zimmerman
Browse files

API Annotations: use AnnValue for (~)

Previously oqtycon used AnnTilde for the location of the RdrName when
parsing (~).

The recent increase in '~' characters in the AST confuses
ghc-exactprint, so this patch treats all RdrNames the same way now,
marking the location of the core name with AnnValue.
parent 83c13c2a
......@@ -2840,7 +2840,7 @@ oqtycon :: { Located RdrName } -- An "ordinary" qualified tycon;
| '(' qtyconsym ')' {% ams (sLL $1 $> (unLoc $2))
[mop $1,mj AnnVal $2,mcp $3] }
| '(' '~' ')' {% ams (sLL $1 $> $ eqTyCon_RDR)
[mop $1,mj AnnTilde $2,mcp $3] }
[mop $1,mj AnnVal $2,mcp $3] }
oqtycon_no_varcon :: { Located RdrName } -- Type constructor which cannot be mistaken
-- for variable constructor in export lists
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment