Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- jq :: (IsString (Tokens s), Stream s, Token s ~ Char) => String -> s -> Either (ParseErrorBundle s Text) Selector
- jqFile :: FilePath -> IO (Either (ParseErrorBundle Text Text) Selector)
- jqFile' :: FilePath -> IO Selector
- jqString :: String -> Either (ParseErrorBundle String Text) Selector
- jqText :: Text -> Either (ParseErrorBundle Text Text) Selector
- jqString' :: String -> Selector
- jqText' :: Text -> Selector
- errorBundlePretty :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
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
Orphan instances
ShowErrorComponent Text Source # | |
showErrorComponent :: Text -> String # errorComponentLen :: Text -> Int # |