Created
May 7, 2017 18:43
-
-
Save philipnilsson/f06f052fbea28a4f7e6b3cd3f8a07377 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
-- Run a stateful computation and on completion | |
-- restore state to it's current value. | |
excursion st = do | |
oldState <- get | |
st | |
put oldState | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment