| Copyright | (c) Amy de Buitléir 2012-2014 |
|---|---|
| License | BSD-style |
| Maintainer | amy@nualeargais.ie |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell98 |
ALife.Creatur.Daemon
Description
Provides a UNIX daemon to run an experiment using the Créatúr framework.
- data Job s = Job {
- onStartup :: s -> IO s
- onShutdown :: s -> IO ()
- onException :: s -> SomeException -> IO s
- task :: StateT s IO ()
- sleepTime :: Int
- data CreaturDaemon p s = CreaturDaemon {}
- simpleDaemon :: Job s -> s -> CreateDaemon ()
- launch :: CreaturDaemon p s -> IO ()
- requestShutdown :: IO ()
Documentation
The work to be performed by a daemon.
Constructors
| Job | |
Fields
| |
data CreaturDaemon p s Source
Constructors
| CreaturDaemon | |
simpleDaemon :: Job s -> s -> CreateDaemon () Source
Creates a simple daemon to run a job. The daemon will run under the login name.
launch :: CreaturDaemon p s -> IO () Source
requestShutdown :: IO () Source