ghc-9.12: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Parser.String

Synopsis

Documentation

data StringLexError Source #

Constructors

StringLexError LexErr BufPos 

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.

Unicode smart quote helpers