This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.1
Pipeline-friendly helpers for working with Cmds
version 1.1.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.1.0
Committed At 2017-09-26 19:39:17 UTC
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

Modules

README

Cmd.Extra

Instead of

init : ( Model, Cmd Msg )
init =
    ( myModel, Cmd.none )

write

init : ( Model, Cmd Msg )
init =
    myModel
        |> withNoCmd

And instead of

incrementAndPing : Model -> ( Model, Cmd Msg )
incrementAndPing model =
    ( { model | counter = model.counter + 1 }
    , ping
    )

write

incrementAndPing : Model -> ( Model, Cmd Msg )
incrementAndPing model =
    { model | counter = model.counter + 1 }
        |> withCmd ping