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 some Contravariant exercises #347

Merged
merged 2 commits into from
Jul 14, 2019
Merged

Conversation

endgame
Copy link
Collaborator

@endgame endgame commented Jul 13, 2019

Partially satisfies #346 .

It would be neat to add some Compose exercises, so I put Course.Contravariant just before Course.Compose in the README. I think traversable and contravariant might be more useful than comonad; maybe there's some scope to rearrange those?

If I keep tinkering with this, I think the plan (of things to build, not necessarily order) will look something like:

  • Compose exercise for Contravariant
  • Divisible
  • Decideable
  • Pretty-Printing using the above?

We may want to take a detour through Semigroup and Monoid, as there's a common idiom there that people tend to use instead of Divisible.

@tonymorris tonymorris merged commit 16a6680 into system-f:master Jul 14, 2019
@endgame endgame deleted the contravariant branch July 14, 2019 04:08
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.

2 participants