Skip to content

Instantly share code, notes, and snippets.

@jasondew

jasondew/get.elm

Last active Apr 8, 2018
Embed
What would you like to do?
requestUpdate : Effects Action
requestUpdate =
Http.get decoder url -- Task Error Response
|> Task.toResult -- Task never (Result Error Response)
|> Task.map Updated -- Task never Action
|> Effects.task -- Effects Action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.