happstack-state-6.1.4: Event-based distributed state.

Safe HaskellNone

Happstack.State.Saver

Synopsis

Documentation

data Saver Source

Constructors

NullSaver

A saver that discards all output

FileSaver String

A saver that operates on files. The parameter is the prefix for the files.

Queue Saver

Enable queueing.

Memory (MVar Store) 

createReader :: Serialize a => Saver -> String -> Int -> IO (ReaderStream a)Source

Dispatches over the Saver type provided to return a ReaderStream for the inferred type.

createWriter :: Serialize a => Saver -> String -> Int -> IO (WriterStream a)Source

Dispatches over the Saver type provided to return a WriterStream for the inferred type.