This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
We were not able to find the expected elm-package.json file at this tag.
Tag 4.0.0
Committed At 2018-09-24 09:53:44 UTC

Modules

    README

    elm-update-extra

    This is a simple collection of functions for working with the update function within the paradigm of a pipeline. It includes functions to recursively call update (including with a list of messages), update the model and add commands.

    update : Msg -> Model -> (Model, Cmd Msg)
    update msg model =
        case msg of
          DoSomething ->
              (model, Cmd.none)
                  |> Update.andThen (update DoSomethingElse)
                  |> Update.sequence [ DoAnotherThing, DoThatThing ]
                  |> Update.addCmd (log "I did all kinds of things"
                  |> Update.updateModel (\m -> { m | x = m.x + 1 }