| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Waargonaut.Decode.Types
Description
Types for the succinct data structure decoder
Synopsis
- type ParseFn = ByteString -> Either DecodeError Json
 - type SuccinctCursor = JsonCursor ByteString Poppy512 (SimpleBalancedParens (Vector Word64))
 - type CursorHistory = CursorHistory' Count
 - newtype Decoder f a = Decoder {
- runDecoder :: ParseFn -> JCurs -> DecodeResultT Count DecodeError f a
 
 - newtype DecodeResult f a = DecodeResult {}
 - newtype JCurs = JCurs {}
 
Documentation
type ParseFn = ByteString -> Either DecodeError Json Source #
Another convenience alias for the type of the function we will use to parse the input string
 into the Json structure.
type SuccinctCursor = JsonCursor ByteString Poppy512 (SimpleBalancedParens (Vector Word64)) Source #
Convenience alias defined for the concrete JsonCursor type.
type CursorHistory = CursorHistory' Count Source #
We define the index of our CursorHistory' to be the Count.
Constructors
| Decoder | |
Fields 
  | |
newtype DecodeResult f a Source #
Provide some of the type parameters that the underlying DecodeResultT
 requires. This contains the state and error management as we walk around our
 zipper and decode our JSON input.
Addtionally we keep our parsing function in a ReaderT such that it's
 accessible for all of the decoding steps.
Constructors
| DecodeResult | |
Fields  | |