HAppS-State-0.9.3: Event-based distributed state.Source codeContentsIndex
HAppS.State.Saver
Documentation
data ReaderStream a Source
Constructors
ReaderStream
readerClose :: IO ()
readerGet :: IO ([a], Int)
readerGetUncut :: IO [a]
data WriterStream a Source
Constructors
WriterStream
writerClose :: IO ()
writerAdd :: a -> IO () -> IO ()
writerAtomicReplace :: a -> IO ()
writerCut :: IO Int
data Saver Source
Constructors
NullSaverA saver that discards all output
FileSaver StringA saver that operates on files. The parameter is the prefix for the files. Creates the prefix directory.
Queue SaverEnable queueing.
Memory (MVar Store)
createReader :: Serialize a => Saver -> String -> Int -> IO (ReaderStream a)Source
createWriter :: Serialize a => Saver -> String -> Int -> IO (WriterStream a)Source
Produced by Haddock version 2.4.2