Last active
March 11, 2016 11:46
-
-
Save freakingawesome/7d8a7c104c27fe215f7c 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
import Html exposing (..) | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (..) | |
import StartApp | |
import Effects exposing (Never) | |
import Task | |
import Signal | |
app = | |
StartApp.start | |
{ init = init | |
, view = view | |
, update = update | |
, inputs = [ ] | |
} | |
main = | |
app.html | |
type alias Model = | |
{ message : String } | |
init = | |
({ message = "Hello world!" }, Effects.none) | |
view address model = | |
div [] [ text model.message ] | |
type Action | |
= NoOp | |
update action model = | |
case action of | |
NoOp -> (model, Effects.none) | |
port tasks : Signal (Task.Task Never ()) | |
port tasks = | |
app.tasks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment