mirror of
https://github.com/marcosh/crem.git
synced 2024-09-11 12:36:19 +03:00
generalize feedback to any foldable monoid
This commit is contained in:
parent
10eb33e6fb
commit
9ad45158fb
@ -40,9 +40,10 @@ data StateMachineT m input output where
|
||||
-> StateMachineT m c d
|
||||
-> StateMachineT m (Either a c) (Either b d)
|
||||
Feedback
|
||||
:: StateMachineT m a [b]
|
||||
-> StateMachineT m b [a]
|
||||
-> StateMachineT m a [b]
|
||||
:: (Foldable n, Monoid (n a), Monoid (n b))
|
||||
=> StateMachineT m a (n b)
|
||||
-> StateMachineT m b (n a)
|
||||
-> StateMachineT m a (n b)
|
||||
Kleisli
|
||||
:: (Foldable n, Monoid (n c))
|
||||
=> StateMachineT m a (n b)
|
||||
|
Loading…
Reference in New Issue
Block a user