astynax/tea-combine/3.0.0

NOTE: the latest version is 3.1.0

TeaCombine.Pure.Either

Combinators for work with pure programs (those doesn't use @Cmd and @Sub).

TODO: add some great docs

oneOfInits : m1 -> m2 -> ( Either () () -> Either m1 m2, Nonempty (Either () ()) )

Combines two initial models to selector and list of paths.

This is a first step in the "oneOfInits+[orInit]"-chain.

m2
-> ( path -> m1, Nonempty path )
-> ( Either path () -> Either m1 m2, Nonempty (Either path ()) )

Adds an another init to the "oneOfInits+[orInit]"-chain.

Update model2 msg2
-> Update model1 msg1
-> Either msg1 msg2
-> Either model1 model2
-> Either model1 model2

Updates one of two sub-models using corresponding sub-update function.