Skip to content

the-sett/elm-update-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helper functions for nesting updates in Elm

The Task.Extra module contains:

message : msg -> Cmd msg
message x =
    Task.perform identity (Task.succeed x)

Which is a useful way of creating a Cmd from a Msg.

The Update modules provide functions for lifting nested update functions into a parent update function, following the so-called 'nested TEA' pattern.

The Update2 module is for update functions that return a new Model and a Cmd.

The Update3 module is for update functions that also return an additional 'out message'.

The Update3Alt module is for update functions that also return an additional 'out message', but as the second item in the return tuple, instead of the last.

These update functions help with composing update functions together.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages