Monadise.OptionThe core function of this library. Takes a higher-order function consuming a direct-style action, and makes it into a function consuming a monadic action for the given monad.
val run : (unit -> 'a) -> 'a mSet up the context in which to call yield. It is safe, although useless, to nest this function.
val yield : 'a m -> 'aTransforms a monadic value into a direct value. This only works in the context of run, without which you will get a runtime exception Stdlib.Effect.Unhandled(Yield(_))