Skip to content

Instantly share code, notes, and snippets.

@michaeljones
Created November 6, 2016 14:43
Show Gist options
  • Save michaeljones/95ace30f63d8c8a43992a61e8007c885 to your computer and use it in GitHub Desktop.
Save michaeljones/95ace30f63d8c8a43992a61e8007c885 to your computer and use it in GitHub Desktop.
Initial Elm project
port module Main exposing (..)
import Html exposing (..)
import Html.App
import Html.Events
import Html.Attributes
main =
Html.App.programWithFlags
{ init = init
, update = update
, view = view
, subscriptions = subscriptions
}
type alias Model =
{}
type alias Flags =
{}
init : Flags -> ( Model, Cmd Msg )
init flags =
( {}, Cmd.none )
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.none
type Msg
= None
update msg model =
( model, Cmd.none )
view : Model -> Html.Html Msg
view model =
div [] []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment