hxt-binary-0.0.2: Serialisation and deserialisation of HXT XmlTrees.

Portabilityportable
Stabilityexperimental
MaintainerUwe Schmidt (uwe@fh-wedel.de)

Text.XML.HXT.Arrow.Binary

Description

De-/Serialisation arrows for XmlTrees and other arbitrary values with a Binary instance

Synopsis

Documentation

readBinaryValue :: (NFData a, Binary a) => Bool -> String -> IOStateArrow s b aSource

Read a serialied value from a file. The the flag indicates uncompressing. In case of an error, the error message is issued and the arrow fails

writeBinaryValue :: Binary a => Bool -> String -> IOStateArrow s a ()Source

Serialize a value, optionally compress it, and write it to a file. In case of an error, the error message is issued and the arrow fails