Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data PackStream Source #
Null | |
Bool !Bool | |
Int !Int64 | |
Float !Double | |
String !Text | |
List !(Vector PackStream) | |
Map !(HashMap PackStream PackStream) | |
Struct !Word8 ![PackStream] |
class ToPackStream a where Source #
toPackStream :: a -> PackStream Source #
class FromPackStream a where Source #
parsePackStream :: PackStream -> Parser a Source #
parseMaybe :: (a -> Parser b) -> a -> Maybe b Source #
pack :: ToPackStream a => Putter a Source #
pretty :: PackStream -> Text Source #
prettyStruct :: (Word8 -> Text) -> PackStream -> Text Source #
genericStructName :: Word8 -> Text Source #
(.=) :: ToPackStream a => Text -> a -> (PackStream, PackStream) Source #
(.:) :: FromPackStream a => HashMap PackStream PackStream -> Text -> Parser a Source #
(.:?) :: FromPackStream a => HashMap PackStream PackStream -> Text -> Parser (Maybe a) Source #