Created
January 14, 2013 21:02
-
-
Save michael-newton-15below/4533440 to your computer and use it in GitHub Desktop.
Error handler interface
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
open System | |
type IErrorHandlerBuilder = | |
abstract member Bind : Option<'T> * ('T -> Option<'U>) -> Option<'U> | |
abstract member Delay : (unit -> Option<'T>) -> Option<'T> | |
abstract member Return : 'T -> Option<'T> | |
abstract member ReturnFrom : Option<'T> -> Option<'T> | |
abstract member TryFinally : Option<'T> * (unit -> unit) -> Option<'T> | |
abstract member Using : 'T * ('T -> Option<'U>) -> Option<'U> when 'T :> IDisposable | |
abstract member Zero : unit -> Option<'T> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment