Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- errorBundlePretty :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- type ParseErrorBundle = ParseErrorBundle Text Void
- format :: Width -> FilePath -> Text -> Either String Text
- formatVerify :: Width -> FilePath -> Text -> Either String Text
Documentation
:: (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 pass over the input stream. The rendered String
always ends with a newline.
Since: megaparsec-7.0.0
type ParseErrorBundle = ParseErrorBundle Text Void Source #
A megaparsec
ParseErrorBundle
specified for use with nixfmt
.