Closed snoyberg closed 9 years ago
Functor instance should act on what is inside the newtype, not the newtype itself
If we try to implement that, we'd have to change the kind of MinLen
, and most likely lose support for monomorphic containers in the process. What you're describing is handled by the MonoFunctor
instance right now.
Ok
Simple demonstration of the problem:
Results in:
I see no option but to release a new major version with the
Functor
instance removed. Slightly tweaked: we can make theFunctor
instance apply only toMinLen Zero
.Pinging @gregwebs, in case you have another idea.