Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- class Bytable b where
- decode :: ByteString -> Either String b
- encode :: b -> ByteString
- fromByteString :: Bytable b => ByteString -> Either String b
- toByteString :: Bytable b => b -> ByteString
- class Parsable p where
- data BytableM a = BytableM {
- runBytableM :: ByteString -> Either String (a, ByteString)
- evalBytableM :: BytableM a -> ByteString -> Either String a
- execBytableM :: BytableM a -> ByteString -> Either String ByteString
- head :: BytableM Word8
- take :: Bytable b => Int -> BytableM b
- null :: BytableM Bool
- list :: Int -> BytableM b -> BytableM [b]
- addLen :: (Bytable n, Num n) => n -> ByteString -> ByteString
Documentation
decode :: ByteString -> Either String b Source
encode :: b -> ByteString Source
fromByteString :: Bytable b => ByteString -> Either String b Source
Deprecated: Use decode instead
toByteString :: Bytable b => b -> ByteString Source
Deprecated: Use encode instead
BytableM | |
|
evalBytableM :: BytableM a -> ByteString -> Either String a Source
execBytableM :: BytableM a -> ByteString -> Either String ByteString Source
addLen :: (Bytable n, Num n) => n -> ByteString -> ByteString Source