binarydefer-1.1: Binary serialization with deferred loading

Portabilityportable to Hugs and GHC. Requires Control.Exception.catch
Stabilityunstable
MaintainerNeil Mitchell <http://www.cs.york.ac.uk/~ndm/>

Data.Binary.Defer

Description

Binary serialisation of deferred values

Documentation

put :: BinaryDefer a => Handle -> a -> IO ()Source

class BinaryDefer a => BinaryDeferStatic a whereSource

Methods

getSize :: a -> IntSource

Must be a constant, must not examine first argument

defer :: [a -> Pending a PendingSome] -> Both aSource

newtype Defer x Source

Constructors

Defer 

Fields

fromDefer :: x
 

unit :: a -> Pending a PendingNoneSource

(<<) :: BinaryDefer a => Pending (a -> b) p -> a -> Pending b PendingSomeSource

(<<~) :: BinaryDefer a => Pending (a -> b) p -> a -> Pending b PendingSomeSource

(<<!) :: Pending a p -> a -> Pending a PendingSomeSource