Last active
January 25, 2016 00:16
-
-
Save rogeriochaves/3991c4d18336bfb1bfeb 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 -> Control -> Control | |
update actionFor control = | |
case actionFor of | |
ActionForControl action -> updateControl action control | |
_ -> control | |
updateControl : ControlAction -> Control -> Control | |
updateControl action model = | |
case action of | |
ChangeVisibility visibility -> | |
{ model | visibility = visibility } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment