License | MIT |
---|---|
Maintainer | Sam Rijs <srijs@airpost.net> |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
- serializer :: (Monad m, ToJSON a) => Conduit a m ByteString
- valueSerializer :: Monad m => Conduit Value m ByteString
- parser :: (Monad m, FromJSON a) => Conduit ByteString m a
- maybeParser :: (Monad m, FromJSON a) => Conduit ByteString m (Maybe a)
- eitherParser :: (Monad m, FromJSON a) => Conduit ByteString m (Either String a)
- valueParser :: Monad m => Conduit ByteString m Value
- maybeValueParser :: Monad m => Conduit ByteString m (Maybe Value)
- eitherValueParser :: Monad m => Conduit ByteString m (Either String Value)
- resultValueParser :: Monad m => Conduit ByteString m (Result Value)
Serialization
serializer :: (Monad m, ToJSON a) => Conduit a m ByteString Source
Consumes a stream of serializable values, and provides a stream of bytestrings.
valueSerializer :: Monad m => Conduit Value m ByteString Source
Consumes a stream of aeson values, and provides a stream of bytestrings.
Parsing
parser :: (Monad m, FromJSON a) => Conduit ByteString m a Source
Consumes a stream of bytestrings, and provides a stream of parsed values, ignoring all parse errors.
maybeParser :: (Monad m, FromJSON a) => Conduit ByteString m (Maybe a) Source
Consumes a stream of bytestrings, and provides a stream of just parsed values, or nothing on parse error.
eitherParser :: (Monad m, FromJSON a) => Conduit ByteString m (Either String a) Source
Consumes a stream of bytestrings, and provides a stream of right parsed values, or left strings describing the parse error.
valueParser :: Monad m => Conduit ByteString m Value Source
Consumes a stream of bytestrings, and provides a stream of aeson values, ignoring all parse errors.
maybeValueParser :: Monad m => Conduit ByteString m (Maybe Value) Source
Consumes a stream of bytestrings, and provides a stream of just aeson values, or nothing on parse error.
eitherValueParser :: Monad m => Conduit ByteString m (Either String Value) Source
Consumes a stream of bytestrings, and provides a stream of right aeson values, or left strings describing the parse error.
resultValueParser :: Monad m => Conduit ByteString m (Result Value) Source
Consumes a stream of bytestrings, and provides a stream of parse results.