Enum and bounded instances for (,) and Either

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Wed May 12 17:57:16 UTC 2021


On Wed, May 12, 2021 at 10:52:56AM -0700, Sandy Maguire wrote:
> Found myself puzzled the other day when I wanted an (Enum a, Enum b) =>
> Enum (a, b) instance, and was distraught that it didn't exist.

I have also experienced this.

Please see
https://mail.haskell.org/pipermail/haskell-cafe/2018-June/129213.html

I can't actually remember what the outcome of that thread was, but you
may find it enlightening to read through it.


More information about the Libraries mailing list