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

A Functor like instance for Many #5

Closed
louispan opened this issue Oct 12, 2017 · 1 comment
Closed

A Functor like instance for Many #5

louispan opened this issue Oct 12, 2017 · 1 comment

Comments

@louispan
Copy link
Owner

Add a way to map over every item in a Many, potentially changing the type

@louispan
Copy link
Owner Author

@dwincort I've uploaded http://hackage.haskell.org/package/data-diverse-1.0.0.0 with this feature.

See

it "every item can be mapped into a different type in a Functor-like fashion with using 'afmap'" $ do
for example usage

The implementation was actually quite simple:

instance ( Reiterate c (a ': as)

I also did a lot of internal changes, but surprisingly the external api didn't change.

Fixed in commit 84c06a3

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

No branches or pull requests

1 participant