Skip to content

arowM/elm-init-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-init-builder

Build Status

Build the root init function from submodel init functions.

A Quick Example

type alias Model =
    { field1 : Field1.Model
    , field2 : Field2.Model
    , field3 : Field3.Model
    }


init : () -> Url -> Key -> ( Model, Cmd Msg )
init _ url key =
    top Model
        |> field Field1.init
        |> field Field2.init
        |> field Field3.init
        |> andThen moreModifications

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages