Copyright | (c) Don Stewart 2010-2012 |
---|---|
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- genericGetVector :: (Vector v a, Binary a) => Get (v a)
- genericGetVectorWith :: Vector v a => Get Int -> Get a -> Get (v a)
- genericPutVector :: (Vector v a, Binary a) => v a -> Put
- genericPutVectorWith :: Vector v a => (Int -> Put) -> (a -> Put) -> v a -> Put
Documentation
genericGetVector :: (Vector v a, Binary a) => Get (v a) Source #
Generic function for vector deserialization.
Deserialize vector using custom parsers.
genericPutVector :: (Vector v a, Binary a) => v a -> Put Source #
Generic put for anything in the G.Vector class.
:: Vector v a | |
=> (Int -> Put) | Encoder for vector size |
-> (a -> Put) | Encoder for vector's element |
-> v a | |
-> Put |
Generic put for anything in the G.Vector class which uses custom encoders.