Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- severityText :: Severity -> String
- stripNewlines :: String -> String
- errorMessageLine :: (Stream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorPosition :: Stream s => ParseErrorBundle s e -> SourcePos
- errorPositionPretty :: Stream s => ParseErrorBundle s e -> String
- errorBundlePretty :: (Stream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- data Result s e = Result {}
- isEmpty :: Result s e -> Bool
- toResult :: Either (ParseErrorBundle s e) [RuleCheck] -> Result s e
Documentation
severityText :: Severity -> String Source #
stripNewlines :: String -> String Source #
errorMessageLine :: (Stream s, ShowErrorComponent e) => ParseErrorBundle s e -> String Source #
errorPosition :: Stream s => ParseErrorBundle s e -> SourcePos Source #
errorPositionPretty :: Stream s => ParseErrorBundle s e -> String Source #
:: (Stream 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