Skip to content

Instantly share code, notes, and snippets.

@freakingawesome
Last active March 11, 2016 11:46
Show Gist options
  • Save freakingawesome/7d8a7c104c27fe215f7c to your computer and use it in GitHub Desktop.
Save freakingawesome/7d8a7c104c27fe215f7c to your computer and use it in GitHub Desktop.
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