| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.PackStream
Contents
Documentation
data PackStream Source #
Constructors
| Null | |
| Bool !Bool | |
| Int !Int64 | |
| Float !Double | |
| String !Text | |
| List !(Vector PackStream) | |
| Map !(HashMap PackStream PackStream) | |
| Struct !Word8 ![PackStream] |
class ToPackStream a where Source #
Minimal complete definition
Methods
toPackStream :: a -> PackStream Source #
Instances
class FromPackStream a where Source #
Minimal complete definition
Methods
parsePackStream :: PackStream -> Parser a Source #
Instances
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 #