| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | amy@nualeargais.ie |
| Safe Haskell | None |
ALife.Creatur.Persistent
Description
A state which persists between runs.
- 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 ()
Documentation
data Persistent a Source
Instances
mkPersistent :: a -> FilePath -> Persistent aSource
Creates a counter that will store its value in the specified file.