Skip to content

Instantly share code, notes, and snippets.

@gdotdesign
Last active February 4, 2016 12:02
Show Gist options
  • Save gdotdesign/8141778f37d5ba6e26f2 to your computer and use it in GitHub Desktop.
Save gdotdesign/8141778f37d5ba6e26f2 to your computer and use it in GitHub Desktop.
type Action
= Tasks ()
| RunTask
update : Action -> Model -> (Model, Effects.Effects Action)
update action model =
case action of
RunTask ->
(model, sendAsEffect address value Tasks)
Tasks _ ->
(model, Effects.none)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment