HAppS-State-0.9.2: Event-based distributed state.ContentsIndex
HAppS.State.Saver
Documentation
data ReaderStream a
Constructors
ReaderStream
readerClose :: IO ()
readerGet :: IO ([a], Int)
readerGetUncut :: IO [a]
data WriterStream a
Constructors
WriterStream
writerClose :: IO ()
writerAdd :: a -> IO () -> IO ()
writerAtomicReplace :: a -> IO ()
writerCut :: IO Int
data Saver
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)
createWriter :: Serialize a => Saver -> String -> Int -> IO (WriterStream a)
Produced by Haddock version 2.1.0