Skip to content

Instantly share code, notes, and snippets.

@odoe
Created December 7, 2015 17:51
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 odoe/6cd5728cc341ed1c9f93 to your computer and use it in GitHub Desktop.
Save odoe/6cd5728cc341ed1c9f93 to your computer and use it in GitHub Desktop.
inbox : Signal.Mailbox Action
inbox =
Signal.mailbox NoOp
actions : Signal Action
actions =
Signal.merge inbox.signal (Signal.map UpdateModel portalItems)
model : Signal Model
model =
Signal.foldp update initialModel actions
main : Signal Html
main =
Signal.map (view inbox.address) model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment