Skip to content

Instantly share code, notes, and snippets.

@zummenix
Created July 23, 2016 07:08
Show Gist options
  • Save zummenix/48343fb005ea766a6b8b52d487fe2bb5 to your computer and use it in GitHub Desktop.
Save zummenix/48343fb005ea766a6b8b52d487fe2bb5 to your computer and use it in GitHub Desktop.
Main.elm template
import Html.App
import Html exposing (div, Html)
main : Program Never
main = Html.App.program { init = init, view = view, update = update, subscriptions = subscriptions }
type alias Model = Int
type Msg = None
init : (Model, Cmd Msg)
init =
(0, Cmd.none)
view : Model -> Html Msg
view model =
div [] []
update : Msg -> Model -> (Model, Cmd Msg)
update msg model =
(model, Cmd.none)
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment