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 #
ToPackStream Bool Source # | |
ToPackStream Double Source # | |
ToPackStream Int64 Source # | |
ToPackStream Text Source # | |
ToPackStream PackStream Source # | |
ToPackStream AuthToken Source # | |
ToPackStream Message Source # | |
ToPackStream a => ToPackStream [a] Source # | |
ToPackStream a => ToPackStream (Vector a) Source # | |
(ToPackStream a, ToPackStream b) => ToPackStream (Map a b) Source # | |
(ToPackStream a, ToPackStream b) => ToPackStream (HashMap a b) Source # | |
class FromPackStream a where Source #
parsePackStream :: PackStream -> Parser a Source #
FromPackStream Bool Source # | |
FromPackStream Double Source # | |
FromPackStream Int64 Source # | |
FromPackStream Text Source # | |
FromPackStream PackStream Source # | |
FromPackStream AuthToken Source # | |
FromPackStream Message Source # | |
FromPackStream a => FromPackStream [a] Source # | |
FromPackStream a => FromPackStream (Vector a) Source # | |
(Ord a, FromPackStream a, FromPackStream b) => FromPackStream (Map a b) Source # | |
(Eq a, Hashable a, FromPackStream a, FromPackStream b) => FromPackStream (HashMap a b) 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 #