Safe Haskell | None |
---|---|
Language | Haskell2010 |
Strict Decoder Types
- strictDecoder :: Get a -> ByteString -> Either DecodeException a
- strictDecoderPart :: Get a -> ByteString -> Either DecodeException a
- newtype Get a = Get {}
- data S = S {}
- data GetResult a = GetResult !S !a
- type Decoded a = Either DecodeException a
- data DecodeException
- notEnoughSpace :: Ptr Word8 -> S -> IO a
- tooMuchSpace :: Ptr Word8 -> S -> IO a
- badEncoding :: Ptr Word8 -> S -> String -> IO a
Documentation
strictDecoder :: Get a -> ByteString -> Either DecodeException a Source #
strictDecoderPart :: Get a -> ByteString -> Either DecodeException a Source #
Decoder monad
Decoder state
type Decoded a = Either DecodeException a Source #
A decoded value
data DecodeException Source #
An exception during decoding