My main program has two types of subscriptions: UI subscriptions (e.g. on
Keyboard.downs) defined in my View.elm, and Websocket.Listen subscriptions
defined in my State.elm. But to batch them together, I need to create an
anonymous function to factor the model through. Is this idiomatic or is
there a better way?
Thank you!!!
Marshall
main =
Html.program
{ init = State.init
, update = State.update
, view = View.root
, subscriptions = \model -> Sub.batch [ View.viewSubscriptions
model, State.webSubscriptions model ]
}
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.