Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created April 16, 2016 10:02
Show Gist options
  • Save chuck0523/1b8840490b9250b9f2e897814a2d0b1c to your computer and use it in GitHub Desktop.
Save chuck0523/1b8840490b9250b9f2e897814a2d0b1c to your computer and use it in GitHub Desktop.
-- update
type Action = DoneTodo
update : Action -> Model -> Model
update action model =
case action of
DoneTodo ->
{ model |
done = True
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment