Skip to content

Instantly share code, notes, and snippets.

@j-hannes
Last active May 21, 2016 20:47
Show Gist options
  • Save j-hannes/c02a205bd07fa9a9e9baf8076c7156c0 to your computer and use it in GitHub Desktop.
Save j-hannes/c02a205bd07fa9a9e9baf8076c7156c0 to your computer and use it in GitHub Desktop.
Update application state
update action state =
case action of
Increment ->
state + 1
Decrement ->
state - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment