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

Add Semigroupal typeclass #882

Closed
ersin-ertan opened this issue Jun 11, 2018 · 2 comments · Fixed by #1280
Closed

Add Semigroupal typeclass #882

ersin-ertan opened this issue Jun 11, 2018 · 2 comments · Fixed by #1280

Comments

@ersin-ertan
Copy link
Contributor

A typeclass that allows combining independent contexts of F<A> and F<B>
Using Semigroupal<F> you form F<Tuple2<A,B>>
The primary method is: fun <A,B>product(fa:F<A>, fb:F<B>):F<Tuple2<A,B>>

P.S. using Tuple2 instead of Pair right?

@BranislavLazic
Copy link
Contributor

BranislavLazic commented Jul 22, 2018

What's the state of this issue?
Also, I think that correct signature of product method should be:
fun <A, B> Kind<F, A>.product(fb: Kind<F, B>): Kind<F, Tuple2<A, B>>

@ersin-ertan
Copy link
Contributor Author

The state is no assignees, please feel free. Yes I believe so, in Arrow the Kind extension method will be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants