Closed bernstein closed 11 years ago
Sure. I was seriously considering adding it when I pushed out 0.3, but decided to hesitate until I heard from someone who wanted it. =)
Your instance flips inf
and sup
though.
Thank you very much. I guess i flipped inf
and sup
because i was to tired to understand what i was doing ;-)
I'm having trouble getting hackage to accept the upload, but the instance is there in HEAD.
On Thu, Oct 31, 2013 at 4:37 PM, Andreas Bernstein <notifications@github.com
wrote:
Thank your very much. I guess i flipped inf and sup because i was to tired to understand what i was doing ;-)
— Reply to this email directly or view it on GitHubhttps://github.com/ekmett/intervals/issues/6#issuecomment-27525643 .
Fixed and uploaded.
I needed a function of type
(V3 a -> a) -> V3 (Interval a) -> Interval a
which reminded me ofcotraverse
from distributive. So I added an instance and it does what i want. But is it correct?If so, is it possible to add it to intervals ?