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

Profunctor conversions #923

Merged
merged 2 commits into from
May 11, 2020
Merged

Profunctor conversions #923

merged 2 commits into from
May 11, 2020

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented May 11, 2020

Follow up to #922

This module introduces conversion functions between the Van Laarhoven
optics used in this library, and profunctor options. Since profunctor
optics are defined manually, no extra dependencies are needed.
@guaraqe
Copy link
Contributor

guaraqe commented May 11, 2020

Nice! The type WrappedPafb now appears on the type signatures, maybe it should be exported too?

@phadej
Copy link
Collaborator Author

phadej commented May 11, 2020

@guaraqe good point. I'll put it into .Internal module.

- Add toIso/fromIso
- Don't use RankNTypes
- Add support for profunctors <5.5
- Add Control.Lens.Internal.Profunctor with WrappedPafb
@phadej phadej force-pushed the profunctor-conversions branch from 76a3856 to 55e6377 Compare May 11, 2020 12:01
@phadej
Copy link
Collaborator Author

phadej commented May 11, 2020

@guaraqe any further comments?

@guaraqe
Copy link
Contributor

guaraqe commented May 11, 2020

No, looks good to me. Thank you!

@phadej phadej merged commit 7ea7fd8 into ekmett:master May 11, 2020
@phadej phadej deleted the profunctor-conversions branch May 11, 2020 12:40
@phadej
Copy link
Collaborator Author

phadej commented May 11, 2020

TODO: add changelog

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