Copyright | (c) 2012-2021 Amy de Buitléir |
---|---|
License | BSD-style |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
A state which persists between runs.
Synopsis
- data Persistent a
- mkPersistent :: a -> FilePath -> Persistent a
- getPS :: Read a => StateT (Persistent a) IO a
- putPS :: (Show a, Read a) => a -> StateT (Persistent a) IO ()
- modifyPS :: (Show a, Read a) => (a -> a) -> StateT (Persistent a) IO ()
- runPS :: Read a => (a -> b) -> StateT (Persistent a) IO b
Documentation
data Persistent a Source #
Instances
mkPersistent :: a -> FilePath -> Persistent a Source #
Creates a counter that will store its value in the specified file.