Created
March 16, 2016 02:16
-
-
Save jasondew/9a08d89d41e00871a91f 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
update : Action -> Model -> ( Model, Effects Action ) | |
update action model = | |
case action of | |
Updated result -> | |
case result of | |
Ok response -> -- do things | |
Err error -> -- handle error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment