Safe Haskell | None |
---|---|
Language | Haskell2010 |
Strict Decoder Types
Synopsis
- strictDecoder :: 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 Env
- | TooMuchSpace Env
- | BadEncoding Env String
- 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 #
Decoder monad
type Decoded a = Either DecodeException a Source #
A decoded value
data DecodeException Source #
An exception during decoding
NotEnoughSpace Env | |
TooMuchSpace Env | |
BadEncoding Env String |
Instances
Eq DecodeException Source # | |
Defined in Flat.Decoder.Types (==) :: DecodeException -> DecodeException -> Bool # (/=) :: DecodeException -> DecodeException -> Bool # | |
Ord DecodeException Source # | |
Defined in Flat.Decoder.Types compare :: DecodeException -> DecodeException -> Ordering # (<) :: DecodeException -> DecodeException -> Bool # (<=) :: DecodeException -> DecodeException -> Bool # (>) :: DecodeException -> DecodeException -> Bool # (>=) :: DecodeException -> DecodeException -> Bool # max :: DecodeException -> DecodeException -> DecodeException # min :: DecodeException -> DecodeException -> DecodeException # | |
Show DecodeException Source # | |
Defined in Flat.Decoder.Types showsPrec :: Int -> DecodeException -> ShowS # show :: DecodeException -> String # showList :: [DecodeException] -> ShowS # | |
Exception DecodeException Source # | |
Defined in Flat.Decoder.Types |