Default Elm app
module Main exposing (..) | |
import Html exposing (..) | |
main : Program Never Model Msg | |
main = | |
Html.program | |
{ init = createModel | |
, view = view | |
, update = update | |
, subscriptions = (always Sub.none) | |
} | |
type alias Model = | |
{} | |
type Msg | |
= NoOp | |
createModel : ( Model, Cmd Msg ) | |
createModel = | |
( {}, Cmd.none ) | |
update : Msg -> Model -> ( Model, Cmd Msg ) | |
update msg model = | |
( model, Cmd.none ) | |
view : Model -> Html Msg | |
view model = | |
h1 [] [ text "There you go!" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment