vector-binary-instances-0.2.4: Instances of Data.Binary and Data.Serialize for vector

Copyright(c) Don Stewart 2010-2012
Safe HaskellNone
LanguageHaskell98

Data.Vector.Binary

Contents

Description

 

Synopsis

Documentation

genericGetVector :: (Vector v a, Binary a) => Get (v a) Source #

Generic function for vector deserialization.

genericGetVectorWith Source #

Arguments

:: Vector v 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.

genericPutVectorWith Source #

Arguments

:: 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.

Orphan instances

(Unbox a, Binary a) => Binary (Vector a) Source #

Unboxed vectors

Methods

put :: Vector a -> Put #

get :: Get (Vector a) #

putList :: [Vector a] -> Put #

(Storable a, Binary a) => Binary (Vector a) Source #

Storable vectors

Methods

put :: Vector a -> Put #

get :: Get (Vector a) #

putList :: [Vector a] -> Put #

(Prim a, Binary a) => Binary (Vector a) Source #

Primitive vectors

Methods

put :: Vector a -> Put #

get :: Get (Vector a) #

putList :: [Vector a] -> Put #

Binary a => Binary (Vector a) Source #

Boxed, generic vectors.

Methods

put :: Vector a -> Put #

get :: Get (Vector a) #

putList :: [Vector a] -> Put #