Skip to content

Instantly share code, notes, and snippets.

@localshred
Created December 12, 2015 05:48
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 localshred/2362267e7939baf4e700 to your computer and use it in GitHub Desktop.
Save localshred/2362267e7939baf4e700 to your computer and use it in GitHub Desktop.
module Foo where
-- ...
type Action =
MetaKeyDown Bool
-- ...
module Main where
import Keyboard
import Foo
import Bar
type Action =
FooEvent Foo.Action
| BarEvent Bar.Action
type alias Model =
{ fooModel : Foo.Model
, barModel : Bar.Model
}
main : Signal Html
main =
app.html
app : StartApp.App Model
app =
StartApp.start { init = init
, update = update
, view = view
, inputs = inputs
}
inputs : List (Signal Action)
inputs =
[ Signal.map (FooEvent Foo.MetaKeyDown) Keyboard.meta -- this is clearly wrong as Foo.MetaKeyDown is not a reference I can make
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment