Skip to content

Instantly share code, notes, and snippets.

@n1k0

n1k0/Main.elm

Created Dec 14, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.