{-# 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 -> forall doc. IsLine doc => String -> doc
text String
"%"
OperatorWhitespaceSymbol
OperatorWhitespaceSymbol_PrefixDollar -> forall doc. IsLine doc => String -> doc
text String
"$"
OperatorWhitespaceSymbol
OperatorWhitespaceSymbol_PrefixDollarDollar -> forall doc. IsLine doc => String -> doc
text String
"$$"
data OperatorWhitespaceOccurrence
= OperatorWhitespaceOccurrence_Prefix
| OperatorWhitespaceOccurrence_Suffix
| OperatorWhitespaceOccurrence_TightInfix