This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.1.0
We were not able to find the expected elm-package.json file at this tag.
Tag 1.1.1
Committed At 2018-09-04 09:12:26 UTC

Modules

    README

    Cmd.Extra

    Experimental package with helpful functions for working with Cmd.

    This package can help you with construction of Cmd msg and composition of pair (model, Cmd msg) that can be used to streamline your flow of actions in update.

        type Msg
            = NoOp
            | Disarm
            | Fire
            | FireRockets
    
        update : Msg -> Model -> ( Model, Cmd Msg )
        update msg model =
            case msg of
                DoNothing ->
                    Cmd.Extra.pure model
                    -- equivalent of (model, Cmd.Extra.none)
    
                Disarm ->
                    Cmd.Extra.withTrigger NoOp model
                    -- equivalent of (model, Cmd.Extra.perform NoOp)
    
                Fire ->
                    ( model, Cmd.Extra.perform FireRockets )
    
                FireRockets ->
                    Rockets.Nukes.fire
    
    

    Feedback and contributions are very welcome.

    License

    BSD 3-Clause License