Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
"Crank the world"-style stateful process.
An input event comes in, an update step runs and an output event is fired.
Documentation
:: MonadMoment m | |
=> m acc | An action to produce the initial stat |
-> (a -> acc -> (x, acc)) | Step function |
-> Event a | Step event |
-> m (Event x, Behavior acc) | A post-step event and a current state snapshot |