Operational values wrap reactions with some historical tag. Index is taken from Data.Reactor.MinimalGraph and is a key to an happened External event.
- data Operational m = Operational {}
- type OperationalLayer m = ReaderT (Index, Internal) (WriterT [Internal] m)
- mkOperationalPruned :: (Functor m, Monad m) => Operational m -> Pruned (OperationalLayer m) (Maybe Serial, [Index])
Documentation
data Operational m Source
Reaction
contextualized with its history.
type OperationalLayer m = ReaderT (Index, Internal) (WriterT [Internal] m)Source
The operational transformer. For reactions to react we store the index to external event and the actual internal event in the reader and store the new events produced by reactions in the writer
:: (Functor m, Monad m) | |
=> Operational m | the Operational for the base |
-> Pruned (OperationalLayer m) (Maybe Serial, [Index]) | the fresh pruned object |
Pruned object builder for Operational
values