mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
do not support Eq, Ord, Show for large tuples (#8475)
CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
58e8b9c40f
commit
9ec54628a2
@ -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)
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user