Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Monad.either binary combat #2867

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions arrow-libs/core/arrow-core/api/arrow-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -3092,6 +3092,7 @@ public final class arrow/typeclasses/Monoid$Companion {
public final fun Long ()Larrow/typeclasses/Monoid;
public final fun Short ()Larrow/typeclasses/Monoid;
public final fun constant (Larrow/typeclasses/Monoid;)Larrow/typeclasses/Monoid;
public final synthetic fun either (Larrow/typeclasses/Monoid;Larrow/typeclasses/Monoid;)Larrow/typeclasses/Monoid;
public final fun either (Larrow/typeclasses/Semigroup;Larrow/typeclasses/Monoid;)Larrow/typeclasses/Monoid;
public final fun endo ()Larrow/typeclasses/Monoid;
public final fun list ()Larrow/typeclasses/Monoid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public interface Monoid<A> : Semigroup<A> {
public fun <A, B> either(SGA: Semigroup<A>, MB: Monoid<B>): Monoid<Either<A, B>> =
EitherMonoid(SGA, MB)

@Deprecated("For binary compat", level = DeprecationLevel.HIDDEN)
public fun <A, B> either(MA: Monoid<A>, MB: Monoid<B>): Monoid<Either<A, B>> =
EitherMonoid(MA, MB)

@JvmStatic
public fun <A> endo(): Monoid<Endo<A>> =
object : Monoid<Endo<A>> {
Expand Down