Skip to content

Instantly share code, notes, and snippets.

@jasondew
Created March 16, 2016 02:16
Show Gist options
  • Save jasondew/9a08d89d41e00871a91f to your computer and use it in GitHub Desktop.
Save jasondew/9a08d89d41e00871a91f to your computer and use it in GitHub Desktop.
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