-
No runtime errors in practice. No null. No undefined is not a function.
-
Friendly error messages that help you add features more quickly.
-
Well-architected code that stays well-architected as your app grows.
-
Automatically enforced semantic versioning for all Elm packages.
sudo npm install -g elm
elm-package install
- Model — the state of your application
- Update — a way to update your state
- View — a way to view your state as HTML
import Html exposing (..)
-- MODEL
type alias Model = { ... }
-- UPDATE
type Msg = Reset | ...
update : Msg -> Model -> Model
update msg model =
case msg of
Reset -> ...
...
-- VIEW
view : Model -> Html Msg
view model =
...
elm-reactor
This starts a server at http://localhost:8000, then type