{-# LANGUAGE LambdaCase #-}
module GHC.Parser.Errors.Basic where
import GHC.Utils.Outputable ( SDoc, text )
data OperatorWhitespaceSymbol
= OperatorWhitespaceSymbol_PrefixPercent
| OperatorWhitespaceSymbol_PrefixDollar
| OperatorWhitespaceSymbol_PrefixDollarDollar
pprOperatorWhitespaceSymbol :: OperatorWhitespaceSymbol -> SDoc
pprOperatorWhitespaceSymbol :: OperatorWhitespaceSymbol -> SDoc
pprOperatorWhitespaceSymbol = \case
OperatorWhitespaceSymbol
OperatorWhitespaceSymbol_PrefixPercent -> String -> SDoc
text String
"%"
OperatorWhitespaceSymbol
OperatorWhitespaceSymbol_PrefixDollar -> String -> SDoc
text String
"$"
OperatorWhitespaceSymbol
OperatorWhitespaceSymbol_PrefixDollarDollar -> String -> SDoc
text String
"$$"
data OperatorWhitespaceOccurrence
= OperatorWhitespaceOccurrence_Prefix
| OperatorWhitespaceOccurrence_Suffix
| OperatorWhitespaceOccurrence_TightInfix