Questions regarding Bounded

Joseph C. Sible josephcsible at gmail.com
Sat May 9 21:30:14 UTC 2020


On Mon, May 4, 2020 at 7:55 AM Simon Jakobi via Libraries
<libraries at haskell.org> wrote:
>
> Are there any instances where
>
> minBound <= x == True
>
> and
>
> maxBound >= x == True
>
> don't hold for every x?

Yes:

minBound <= Data.Ord.Down (1 :: Int) == False

IMO, this is kind of a wart in Down, as I commented at
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/881#note_271111

Joseph C. Sible


More information about the Libraries mailing list