saison-0.1: Stream Aeson, fruity, spicy, well carbonated

Safe HaskellNone
LanguageHaskell2010

Saison.Decoding.Parser

Description

Parser from strict ByteString to Tokens.

Synopsis

Documentation

tokens :: ByteString -> Tokens ByteString String Source #

Lex (and parse) the ByteString into Tokens stream.

The rest of input is in Maybe ByteString. Errors are simple textual errors atm.

  • TODO: try with stack of parsers, and not making new continuations. Will it be faster?
  • TODO: make an Error data type.

type Parser tk k = ByteString -> (ByteString -> k) -> tk k String Source #

skipSpace :: ByteString -> ByteString Source #

Strip leading (ASCII) space

attoParse :: Parser a -> ByteString -> IResult ByteString a Source #

Strict bytestring parse which submits empty string to partial.