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

Support Scalaz #73

Merged
merged 3 commits into from
Sep 29, 2017
Merged

Support Scalaz #73

merged 3 commits into from
Sep 29, 2017

Conversation

andyscott
Copy link
Member

@andyscott andyscott commented Sep 27, 2017

Work in progress: do not merge this yet.

After basic support for Scalaz is added, we should be able to target Scala Native (solving #64).

@jdegoes
Copy link

jdegoes commented Sep 28, 2017

Really exciting to see this! 🎉

Copy link
Contributor

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work!

@@ -59,7 +71,7 @@ private[internal] object catryoshka {
(implicit M: Monad[M], F: Traverse[F])
: M[B] =
hylo[ λ[α => M[F[α]]], A, M[B] ](a)(
fb => M.flatMap(fb)(b => M.flatMap(F.sequence(b))(algM)),
fb => fb >>= (b => b.sequence >>= algM),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice trick

@andyscott andyscott changed the title [WIP] Support Scalaz Support Scalaz Sep 29, 2017
@andyscott andyscott merged commit 3552f12 into master Sep 29, 2017
@andyscott andyscott deleted the feature/scalaz branch September 29, 2017 06:39
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 this pull request may close these issues.

3 participants