creatur-4.3.2: Framework for artificial life experiments.

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellNone

ALife.Creatur.Daemon

Description

Provides a UNIX daemon to run an experiment using the Créatúr framework.

Synopsis

Documentation

data Daemon s Source

Constructors

Daemon 

Fields

onStartup :: s -> IO s
 
onShutdown :: s -> IO ()
 
onException :: s -> SomeException -> IO s
 
task :: StateT s IO ()
 
username :: String
 
sleepTime :: Int
 

launch :: Daemon s -> s -> IO ()Source

launch username sleepTime state task creates a daemon running as username, which invokes task repeatedly, sleeping for sleepTime microseconds between invocations of task.