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

Stop exporting Diagrams.Coordinates from Diagrams.Prelude #82

Merged
merged 2 commits into from
Jun 6, 2013

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Jun 3, 2013

To my knowledge there are two operator clashes between diagrams and lens: (&) and (#). (#) is fundamental to diagrams but quite peripheral to lens, so I'm happy to leave things as they are---users of diagrams+lens can hide (#) from their lens import.

With (&), the situation is reversed --- it's used heavily in idiomatic lens code, but in the context of diagrams it isn't always needed, and when it is one can just as easily use functions like r2 and p2. The proposal, therefore, is to stop re-exporting Diagrams.Coordinates (and hence (&)) from Diagrams.Prelude. Users who want it can still import Diagrams.Coordinates explicitly.

Brent Yorgey added 2 commits April 9, 2013 21:05
This is for compatibility with lens, as (&) is a rather important lens
operator and clashes with Coordinates.  Users who want the Coordinates
stuff can import Diagrams.Coordinates explicitly.  Still need to
update documentation to note this, and fix user manual examples,
gallery, etc.
fryguybob added a commit that referenced this pull request Jun 6, 2013
Stop exporting Diagrams.Coordinates from Diagrams.Prelude
@fryguybob fryguybob merged commit c1e0605 into master Jun 6, 2013
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