Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- parseCards :: String -> Either (ParseErrorBundle String Void) [Card]
- errorBundlePretty :: (Stream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
Documentation
parseCards :: String -> Either (ParseErrorBundle String Void) [Card] 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