Skip to content

Instantly share code, notes, and snippets.

@djleonskennedy
Created August 25, 2016 18:34
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 djleonskennedy/98013299efa4579b83bf658e12cbf5cf to your computer and use it in GitHub Desktop.
Save djleonskennedy/98013299efa4579b83bf658e12cbf5cf to your computer and use it in GitHub Desktop.
module App exposing (..)
import Html exposing (Html, div, text)
import Html.App
-- MODEL
type alias Model =
String
init: ( Model, Cmd Msg )
init =
( "Hello bitches !!!", Cmd.none )
-- MESSAGES
type Msg
= NoOp
-- VIEW
view: Model -> Html Msg
view model =
text model
-- UPDATE
update: Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
NoOp ->
( model, Cmd.none )
-- SUBSCRIPTIONS
subscriptions: Model -> Sub Msg
subscriptions model =
Sub.none
-- MAIN
main : Program Never
main = Html.App.program
{ init = init
, view = view
, update = update
, subscriptions = subscriptions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment