do not support Eq, Ord, Show for large tuples (#8475)

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Gary Verhaegen 2021-01-12 17:43:35 +01:00 committed by GitHub
parent 58e8b9c40f
commit 9ec54628a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,7 @@ deriving instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g,
deriving instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g,
Eq h, Eq i, Eq j, Eq k, Eq l, Eq m, Eq n, Eq o)
=> Eq (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
-- Deliberately not supporting larger sizes. Do not add support for them.
deriving instance (Eq a, Eq b) => Eq (Either a b)
@ -298,6 +299,7 @@ deriving instance (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g,
deriving instance (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g,
Ord h, Ord i, Ord j, Ord k, Ord l, Ord m, Ord n, Ord o)
=> Ord (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
-- Deliberately not supporting larger sizes. Do not add support for them.
deriving instance (Ord a, Ord b) => Ord (Either a b)

View File

@ -170,3 +170,5 @@ instance (Show a, Show b, Show c, Show d, Show e) => Show (a,b,c,d,e) where
. showString ","
. shows e
. showString ")"
-- Deliberately not supporting larger sizes. Do not add support for them.