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

Mixed compositions #438

Merged
merged 10 commits into from Jul 29, 2013
Merged

Conversation

S11001001
Copy link
Member

In #348, I found that, say, the product of Traverse and Traverse1 turns out to be Traverse1. So these are "mixed" composes and products for Contravariant, Functor, Foldable[1], and Traverse[1]. They have funny names I chose mainly to avoid the tarpit of overloading.

@larsrh
Copy link
Contributor

larsrh commented Jul 25, 2013

Could you add tests for these?

@S11001001
Copy link
Member Author

Sure; it will require formulating some laws for Foldable, Foldable1, and Traverse1 first.

larsrh added a commit that referenced this pull request Jul 29, 2013
Mixed compositions
@larsrh larsrh merged commit 9f41643 into scalaz:scalaz-seven Jul 29, 2013
@larsrh
Copy link
Contributor

larsrh commented Jul 29, 2013

I realized that requesting tests was a bit silly. I hope we can get some laws for at least Traverse1 in the near future. I suspect that Foldable has no laws beyond parametricity, though.

@pthariensflame
Copy link
Contributor

@larsrh In Scala, parametricity is a non-trivial (and testable) law-set, though.

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.

None yet

3 participants