laserpants/elm-burrito-update/2.3.0

NOTE: the latest version is 3.0.4

Burrito.Update.Simple

This module exposes an API identical to Burrito.Update except a simpler version of the Update type alias with two type parameters instead of three, which is sufficient in most cases.

type alias Update a msg =
Update a msg ()
save : a -> Update a msg
addCmd : Cmd msg -> a -> Update a msg
map : (a -> b) -> Update a msg -> Update b msg
mapCmd : (msg -> msg1) -> Update a msg -> Update a msg1
join : Update (Update a msg) msg -> Update a msg
kleisli : (b -> Update d msg) -> (a -> Update b msg) -> a -> Update d msg
andThen : (b -> Update a msg) -> Update b msg -> Update a msg
sequence : List (a -> Update a msg) -> a -> Update a msg
andMap : Update a msg -> Update (a -> b) msg -> Update b msg
ap : Update (a -> b) msg -> Update a msg -> Update b msg
map2 : (p -> q -> r) -> Update p msg -> Update q msg -> Update r msg
(p -> q -> r -> s)
-> Update p msg
-> Update q msg
-> Update r msg
-> Update s msg
(p -> q -> r -> s -> t)
-> Update p msg
-> Update q msg
-> Update r msg
-> Update s msg
-> Update t msg
(p -> q -> r -> s -> t -> u)
-> Update p msg
-> Update q msg
-> Update r msg
-> Update s msg
-> Update t msg
-> Update u msg
(p -> q -> r -> s -> t -> u -> v)
-> Update p msg
-> Update q msg
-> Update r msg
-> Update s msg
-> Update t msg
-> Update u msg
-> Update v msg
(p -> q -> r -> s -> t -> u -> v -> w)
-> Update p msg
-> Update q msg
-> Update r msg
-> Update s msg
-> Update t msg
-> Update u msg
-> Update v msg
-> Update w msg
run : (p -> Update a msg) -> p -> ( a, Cmd msg )
run2 : (p -> q -> Update a msg) -> p -> q -> ( a, Cmd msg )
run3 : (p -> q -> r -> Update a msg) -> p -> q -> r -> ( a, Cmd msg )
andAddCmd : Cmd msg -> Update a msg -> Update a msg
using : (a -> a -> b) -> a -> b
with : (a -> b) -> (b -> a -> c) -> a -> c
andWith : (b -> c) -> (c -> b -> Update a msg) -> Update b msg -> Update a msg
andUsing : (b -> b -> Update a msg) -> Update b msg -> Update a msg