From 0da85d41ee6bc7f941cdbee8cebd5b57fa35396f Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Fri, 14 May 2021 12:33:01 +0100 Subject: EPA: Fix explicit specificity and unicode linear arrow annotations Closes #19839 Closes #19840 --- compiler/GHC/Parser/Annotation.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/GHC/Parser/Annotation.hs') 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. -- cgit v1.2.1