Copyright | (c) Don Stewart 2010-2012 |
---|---|
Safe Haskell | None |
Language | Haskell98 |
Documentation
genericGetVector :: (Vector v a, Binary a) => Get (v a) Source #
Generic function for vector deserialization.
:: (Vector v a, Binary a) | |
=> Get Int | Parser for vector size |
-> Get a | Parser for vector's element |
-> Get (v a) |
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, Binary 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.