| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Data.PackStream.Put
Description
Internal module. Not part of the public API.
Synopsis
- putNull :: Put
- putBoolean :: Bool -> Put
- putFloat :: Double -> Put
- putInteger :: Int -> Put
- putInteger64 :: Int64 -> Put
- putString :: Text -> Put
- putBytes :: ByteString -> Put
- putList :: (a -> Put) -> Vector a -> Put
- putList' :: Word32 -> Put -> Put
- putDictionary :: (a -> Put) -> (b -> Put) -> HashMap a b -> Put
Documentation
putBoolean :: Bool -> Put Source #
Encode a PackStream boolean value.
putInteger :: Int -> Put Source #
putBytes :: ByteString -> Put Source #
Encode a ByteString as a PackStream byte array.
putList :: (a -> Put) -> Vector a -> Put Source #
Encode a Vector as a PackStream list using the given element encoder.