Closed bergey closed 10 years ago
What do we use the Wrapped
instance for, anyway?
I think I moved it from michael sloan's: https://github.com/diagrams/diagrams-contrib/blob/master/src/Diagrams/Lens.hs
On Tue, Feb 4, 2014 at 7:38 AM, Brent Yorgey notifications@github.comwrote:
What do we use the Wrapped instance for, anyway?
Reply to this email directly or view it on GitHubhttps://github.com/diagrams/diagrams-contrib/issues/29#issuecomment-34055170 .
I don't think we're currently using this Wrapped
instance at all. vector-space-points
exports a Newtype
instance, and I assumed we'd want a Wrapped
instance because we replaced all the other Newtype
instances this way. diagrams-core
and diagrams-lib
don't use the Newtype
instance, either.
Yes I agree, let's get rid of it.
On Tue, Feb 4, 2014 at 9:12 AM, Daniel Bergey notifications@github.comwrote:
I don't think we're currently using this Wrapped instance at all. vector-space-points exports a Newtype instance, and I assumed we'd want a Wrapped instance because we replaced all the other Newtype instances this way. diagrams-core and diagrams-lib don't use the Newtype instance, either.
Reply to this email directly or view it on GitHubhttps://github.com/diagrams/diagrams-contrib/issues/29#issuecomment-34062319 .
OK, let's get rid of it, and get rid of the Newtype
instance too while we're at it.
I removed the Newtype
instance, the copy in my -core PR, and the -contrib copy.
There's a Wrapped instance for
Point
s that clearly doesn't belong in diagrams-contrib, but I'm not sure where it belongs. I've considered:lens
dependency.Wrapped
instance, because we want people to think harder about the semantics of.-. origin
. There should be anIso
with some more descriptive name.Preferences?