Skip to content

Instantly share code, notes, and snippets.

@n1k0
Created December 14, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1k0/3c563010a03ca08a5e4cdb63bd1ab9a5 to your computer and use it in GitHub Desktop.
Save n1k0/3c563010a03ca08a5e4cdb63bd1ab9a5 to your computer and use it in GitHub Desktop.
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