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

Fixed the order of type arguments to correspond to Distributive methods #18

Merged
merged 2 commits into from Aug 5, 2016

Conversation

Icelandjack
Copy link
Contributor

The parent type class is the first argument of methods, make cotraverse and comapM follow that example:

distribute @(Backwards _) :: 
  (Distributive t, Functor f) => f (Backwards t a) -> Backwards t (f a)

cotraverse @(Backwards _) :: 
  (Distributive t, Functor f) => (f a -> b) -> f (Backwards t a) -> Backwards t b

comapM @(Backwards _) :: 
  (Distributive t, Monad m) => (m a -> b) -> m (Backwards t a) -> Backwards t b

@RyanGlScott RyanGlScott merged commit 8cc6891 into ekmett:master Aug 5, 2016
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

2 participants