ghc-9.15: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.Parser.String

Synopsis

Documentation

lexMultilineString :: Int -> StringBuffer -> Either StringLexError String Source #

See Note [Multiline string literals]

Assumes string is lexically valid. Skips the steps about splitting and rejoining lines, and instead manually find newline characters, for performance.

StringMeta

data StringMeta Source #

Instances

Instances details
Data StringMeta Source # 
Instance details

Defined in GHC.Parser.String

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StringMeta -> c StringMeta Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StringMeta Source #

toConstr :: StringMeta -> Constr Source #

dataTypeOf :: StringMeta -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c StringMeta) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StringMeta) Source #

gmapT :: (forall b. Data b => b -> b) -> StringMeta -> StringMeta Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StringMeta -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StringMeta -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> StringMeta -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StringMeta -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StringMeta -> m StringMeta Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StringMeta -> m StringMeta Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StringMeta -> m StringMeta Source #

Show StringMeta Source # 
Instance details

Defined in GHC.Parser.String

Unicode smart quote helpers