Skip to content

Commit

Permalink
Remove bindError
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamil Maqdis Anton committed Nov 30, 2020
1 parent dd3ed50 commit 1c6d662
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/AsyncResult.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ module AsyncResultCE =
member _.Bind(asyncResult: AsyncResult<'a, 'e>, f: 'a -> AsyncResult<'b, 'e>): AsyncResult<'b, 'e> =
AsyncResult.bind f asyncResult

member _.Bind(error: Result<'a, 'e1>, f: 'e1 -> Result<'a, 'e2>): AsyncResult<'a, 'e2> =
AsyncResult.ofResult (Result.bindError f error)

member _.Bind(error: AsyncResult<'a, 'e1>, f: 'e1 -> AsyncResult<'a, 'e2>): AsyncResult<'a, 'e2> =
AsyncResult.bindError f error

member _.Delay(f: unit -> AsyncResult<'a, 'e>): AsyncResult<'a, 'e> = async.Delay f

member _.Combine(unitAsyncResult: AsyncResult<unit, 'e>, asyncResult: AsyncResult<'a, 'e>)
Expand Down
2 changes: 0 additions & 2 deletions src/Result.fs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ module ResultCE =

member _.Bind(result: Result<'a, 'e>, f: 'a -> Result<'b, 'e>): Result<'b, 'e> = Result.bind f result

member _.Bind(error: Result<'a, 'e1>, f: 'e1 -> Result<'a, 'e2>): Result<'a, 'e2> = Result.bindError f error

member _.Delay(f: unit -> Result<'a, 'e>): unit -> Result<'a, 'e> = f

member _.Run(f: unit -> Result<'a, 'e>): Result<'a, 'e> = f ()
Expand Down

0 comments on commit 1c6d662

Please sign in to comment.