Fresheyeball/elm-return/5.0.0

NOTE: this package is not compatible with Elm 0.19.1

Respond

type alias Respond msg a =
a -> Cmd msg

A function from a model to a Cmd. Basically there are times where you want to have a side effect on the world if the model has a certain shape. Respond facilitates this use case.

append : Respond msg a -> Respond msg a -> Respond msg a
sum : List (Respond msg a) -> Respond msg a
zero : Respond msg a
comap : (b -> a) -> Respond msg a -> Respond msg b

Add a function to the front b -> a >> a -> Cmd msg