Correct behaviour of Bounded (Down a)
carter.schonwald at gmail.com
Fri Sep 18 13:54:18 UTC 2020
Def a bug! Plz at myself and the core libraries handle for code review plz.
This sounds kinda related to an MR that has languished too long regarding
the behavior of Down on Ord1, which I think is related??? (I tried to
arbitrate / layout possible answers for the related issue in the associated
mr, but none of the clc members have engaged in the design space challenge)
On Fri, Sep 18, 2020 at 7:44 AM David Beacham <mail at dbeacham.co.uk> wrote:
> Hi all,
> The current instance for `Bounded a => Bounded (Down a)` derives the
> `minBound` and `maxBound` exactly as they are for the underlying type `a`
> where I think they should be flipped to respect the flipped ordering of
> `Down a`?
> I have a feeling this has been come up in some other context/list before
> but I couldn't find a reference to it when searching - so sorry if this is
> a duplicate.
> I've got a corresponding MR here:
> Thanks, David.
> Libraries mailing list
> Libraries at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries