summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/Annotation.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2021-05-14 12:33:01 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-21 15:05:44 -0400
commit0da85d41ee6bc7f941cdbee8cebd5b57fa35396f (patch)
tree6dfb34ff0c0a46771defe0f65d9004eed9fd5cfd /compiler/GHC/Parser/Annotation.hs
parent6eed426bf24fe4ddc4c4802ff44b949e74f9d7ee (diff)
downloadhaskell-0da85d41ee6bc7f941cdbee8cebd5b57fa35396f.tar.gz
EPA: Fix explicit specificity and unicode linear arrow annotations
Closes #19839 Closes #19840
Diffstat (limited to 'compiler/GHC/Parser/Annotation.hs')
-rw-r--r--compiler/GHC/Parser/Annotation.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Parser/Annotation.hs b/compiler/GHC/Parser/Annotation.hs
index e2701709f3..ab88285274 100644
--- a/compiler/GHC/Parser/Annotation.hs
+++ b/compiler/GHC/Parser/Annotation.hs
@@ -622,6 +622,7 @@ data TrailingAnn
| AddVbarAnn EpaLocation -- ^ Trailing '|'
| AddRarrowAnn EpaLocation -- ^ Trailing '->'
| AddRarrowAnnU EpaLocation -- ^ Trailing '->', unicode variant
+ | AddLollyAnnU EpaLocation -- ^ Trailing '⊸'
deriving (Data,Show,Eq, Ord)
instance Outputable TrailingAnn where
@@ -630,6 +631,7 @@ instance Outputable TrailingAnn where
ppr (AddVbarAnn ss) = text "AddVbarAnn" <+> ppr ss
ppr (AddRarrowAnn ss) = text "AddRarrowAnn" <+> ppr ss
ppr (AddRarrowAnnU ss) = text "AddRarrowAnnU" <+> ppr ss
+ ppr (AddLollyAnnU ss) = text "AddLollyAnnU" <+> ppr ss
-- | Annotation for items appearing in a list. They can have one or
-- more trailing punctuations items, such as commas or semicolons.