We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b97aae commit 26d5a2fCopy full SHA for 26d5a2f
src/FSharpPlus/Extensions/Result.fs
@@ -78,6 +78,7 @@ module Result =
78
/// <remarks><c>flatten</c> is equivalent to <c>bind id</c>.</remarks>
79
let flatten source : Result<'T,'Error> = match source with Ok (Ok v) -> Ok v | Ok (Error e) | Error e -> Error e
80
81
+ // Note: To be fixed in F#+ 2. Arguments should be flipped in order to match the generic catch.
82
[<System.Obsolete("Use Result.bindError instead.")>]
83
let inline catch f = function Ok v -> Ok v | Error e -> (f: 't->_) e : Result<'v,'e>
84
0 commit comments