Created
April 26, 2015 14:02
-
-
Save SteveGilham/737d12bdbb1046e18b40 to your computer and use it in GitHub Desktop.
I/O monad definition
This file contains hidden or 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
type 'a io = IO of (unit -> 'a) | |
exception IOFailure | |
let RunIO (IO f) = f();; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment