Skip to content

Instantly share code, notes, and snippets.

@rrichardson
Created September 14, 2015 01:07
Show Gist options
  • Save rrichardson/a24d1c0461e909385d2c to your computer and use it in GitHub Desktop.
Save rrichardson/a24d1c0461e909385d2c to your computer and use it in GitHub Desktop.
import Effects exposing (Never)
import Board exposing (init, update, view, Action(..))
import StartApp
import Task
import Window
import Signal
app =
StartApp.start
{ init = init
, update = update
, view = view
, inputs = [windowAct]
}
type Action =
Window (Int, Int)
| Foo
main =
app.html
port tasks : Signal (Task.Task Never ())
port tasks =
app.tasks
windowAct : Signal Action
windowAct = Signal.map Window Window.dimensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment