Response utilities for Elm Architecture. Build responses from tasks, pipe them, map over.
Canonical usage: construct a result from model and cmd.
Construct a response from a model and task.
Construct a result from model and cmd, flipped for piping:
{ model | foo = bar }
|> withCmd someCmdConstruct a result from model and task, flipped for piping:
{ model | foo = bar }
|> withTask someTaskConstruct a result from model without cmd, flipped for piping:
{ model | foo = bar }
|> withNoneMap over model.
Map over cmd.
Map over model and cmd.
A response is an updated model and some cmd.