Skip to content

Commit

Permalink
fix fromEither
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 23, 2024
1 parent e62c979 commit 4be27c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait EitherCreation {

/** create an Either effect from a single Either value */
def fromEither[R, E, A](Either: E Either A)(implicit member: Either[E, *] |= R): Eff[R, A] =
Either.fold[Eff[R, A]](left[R, E, A], right[R, E, A])
send[Either[E, *], R, A](Either)

/** create a failed value */
def left[R, E, A](e: E)(implicit member: Either[E, *] |= R): Eff[R, A] =
Expand Down

0 comments on commit 4be27c5

Please sign in to comment.