creatur-5.8.0: Framework for artificial life experiments.

Copyright(c) Amy de Buitléir 2012-2014
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

ALife.Creatur.Persistent

Description

A state which persists between runs.

Synopsis

Documentation

mkPersistent :: a -> FilePath -> Persistent a Source

Creates a counter that will store its value in the specified file.

getPS :: Read a => StateT (Persistent a) IO a Source

putPS :: (Show a, Read a) => a -> StateT (Persistent a) IO () Source

modifyPS :: (Show a, Read a) => (a -> a) -> StateT (Persistent a) IO () Source

runPS :: Read a => (a -> b) -> StateT (Persistent a) IO b Source