Last active
April 8, 2018 01:48
-
-
Save jasondew/7892e8076a4fea4006db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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