Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- severityText :: DLSeverity -> Text
- stripNewlines :: String -> String
- errorMessage :: (VisualStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorMessageLine :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorPosition :: TraversableStream s => ParseErrorBundle s e -> SourcePos
- errorPositionPretty :: TraversableStream s => ParseErrorBundle s e -> String
- errorBundlePretty :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- data Result s e = Result {}
- toResult :: Text -> Either (ParseErrorBundle s e) Failures -> Result s e
Documentation
severityText :: DLSeverity -> Text Source #
stripNewlines :: String -> String Source #
errorMessage :: (VisualStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String Source #
errorMessageLine :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String Source #
errorPosition :: TraversableStream s => ParseErrorBundle s e -> SourcePos Source #
errorPositionPretty :: TraversableStream s => ParseErrorBundle s e -> String Source #
:: (VisualStream s, TraversableStream s, ShowErrorComponent e) | |
=> ParseErrorBundle s e | Parse error bundle to display |
-> String | Textual rendition of the bundle |
Pretty-print a ParseErrorBundle
. All ParseError
s in the bundle will
be pretty-printed in order together with the corresponding offending
lines by doing a single efficient pass over the input stream. The
rendered String
always ends with a newline.
Since: megaparsec-7.0.0