Skip to content

Commit 26d5a2f

Browse files
committed
Add note
1 parent 4b97aae commit 26d5a2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FSharpPlus/Extensions/Result.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module Result =
7878
/// <remarks><c>flatten</c> is equivalent to <c>bind id</c>.</remarks>
7979
let flatten source : Result<'T,'Error> = match source with Ok (Ok v) -> Ok v | Ok (Error e) | Error e -> Error e
8080

81+
// Note: To be fixed in F#+ 2. Arguments should be flipped in order to match the generic catch.
8182
[<System.Obsolete("Use Result.bindError instead.")>]
8283
let inline catch f = function Ok v -> Ok v | Error e -> (f: 't->_) e : Result<'v,'e>
8384

0 commit comments

Comments
 (0)