Created
August 25, 2016 18:34
-
-
Save djleonskennedy/98013299efa4579b83bf658e12cbf5cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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