- Examples - Demo applications to show solutios for often topics.
- Templates - Simple applications which can be usefull as starting point of new application.
Go to example subdirectory and compile Elm source code into HTML/JS (index.html):
elm-make
Or just run
elm-reactor
Demo applications to show solutios for often topics. Main differences are in main function.
- elm-basic - Hello World, Nothing more.
main : Html msg
main =
text "Hello, World!"
- elm-updates - Application using update function.
main : Program Never Model Msg
main =
Html.beginnerProgram
{ model = init
, update = update
, view = view
}
- elm-commands - Application using Commands.
main : Program Never Model Msg
main =
H.program
{ init = init
, update = update
, view = view
, subscriptions = subscriptions
}