astynax/tea-combine/2.0.0

NOTE: the latest version is 3.1.0

TeaCombine.Effectful.Pair

Combinators for work with effectful programs (those use @Cms and @Sub).

TODO: add some great docs.

(flags -> ( model2, Cmd msg2 ))
-> (flags -> ( model1, Cmd msg1 ))
-> flags
-> ( Both model1 model2, Cmd (Either msg1 msg2) )

Inits both models (with Cmds).

Update model2 msg2
-> Update model1 msg1
-> Update (Both model1 model2) (Either msg1 msg2)

Updates one of two submodels using corresponding subupdate function.

Subscription model2 msg2
-> Subscription model1 msg1
-> Both model1 model2
-> Sub (Either msg1 msg2)

Combines two subscriptions.