Created
August 8, 2017 16:16
-
-
Save noelrappin/1a7f0736fc817e2fda9894851efd3ab9 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
save : Editable -> Editable | |
save x = | |
case x of | |
BeingEdited _ new -> | |
NotBeingEdited new | |
NotBeingEdited _ -> | |
x | |
cancel : Editable -> Editable | |
cancel x = | |
case x of | |
BeingEdited old _ -> | |
NotBeingEdited old | |
NotBeingEdited _ -> | |
x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment