From 080f42a232b9e1124741d98427ce96b2c3ab1cf5 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 17 Dec 2024 23:07:44 +0100 Subject: Remove some missed overlapping Show (Mixed) instances --- src/Data/Array/Nested/Internal/Ranked.hs | 1 - src/Data/Array/Nested/Internal/Shaped.hs | 1 - 2 files changed, 2 deletions(-) (limited to 'src/Data') diff --git a/src/Data/Array/Nested/Internal/Ranked.hs b/src/Data/Array/Nested/Internal/Ranked.hs index 5160078..54094cc 100644 --- a/src/Data/Array/Nested/Internal/Ranked.hs +++ b/src/Data/Array/Nested/Internal/Ranked.hs @@ -70,7 +70,6 @@ instance (Show a, Elt a) => Show (Ranked n a) where -- just unwrap the newtype and defer to the general instance for nested arrays newtype instance Mixed sh (Ranked n a) = M_Ranked (Mixed sh (Mixed (Replicate n Nothing) a)) -deriving via (ShowViaToListLinear sh (Ranked n a)) instance (Show a, Elt a) => Show (Mixed sh (Ranked n a)) newtype instance MixedVecs s sh (Ranked n a) = MV_Ranked (MixedVecs s sh (Mixed (Replicate n Nothing) a)) diff --git a/src/Data/Array/Nested/Internal/Shaped.hs b/src/Data/Array/Nested/Internal/Shaped.hs index 0a230c4..efeb618 100644 --- a/src/Data/Array/Nested/Internal/Shaped.hs +++ b/src/Data/Array/Nested/Internal/Shaped.hs @@ -71,7 +71,6 @@ instance (Show a, Elt a) => Show (Shaped sh a) where -- just unwrap the newtype and defer to the general instance for nested arrays newtype instance Mixed sh (Shaped sh' a) = M_Shaped (Mixed sh (Mixed (MapJust sh') a)) -deriving via (ShowViaToListLinear sh (Shaped sh' a)) instance (Show a, Elt a) => Show (Mixed sh (Shaped sh' a)) newtype instance MixedVecs s sh (Shaped sh' a) = MV_Shaped (MixedVecs s sh (Mixed (MapJust sh') a)) -- cgit v1.2.3-70-g09d2