ghc-lib-parser-9.12.2.20250421: The GHC API, decoupled from GHC versions
Safe HaskellIgnore
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