| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Engine.ReactiveBanana.Stateful
Description
"Crank the world"-style stateful process.
An input event comes in, an update step runs and an output event is fired.
Documentation
Arguments
| :: 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 |