From 1372ecf48af80e7f795b1b1c11d6a63b5235bd77 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 11 Sep 2024 21:05:14 +0200 Subject: Make Show instance print 'fromList', not 'DEnumMap' --- src/Data/Dependent/EnumMap/Strict/Internal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Dependent/EnumMap/Strict/Internal.hs b/src/Data/Dependent/EnumMap/Strict/Internal.hs index 1a26f1a..7e54a64 100644 --- a/src/Data/Dependent/EnumMap/Strict/Internal.hs +++ b/src/Data/Dependent/EnumMap/Strict/Internal.hs @@ -22,7 +22,7 @@ newtype DEnumMap k v = DEnumMap (IM.IntMap (KV k v)) instance (Enum1 k, forall a. Show (k a), forall a. Show (v a)) => Show (DEnumMap (k :: kind -> Type) (v :: kind -> Type)) where showsPrec d mp = showParen (d > 10) $ - showString "DEnumMap " . showListWith (\(k :=> v) -> showsPrec 2 k . showString " :=> " . showsPrec 1 v) (toList mp) + showString "fromList " . showListWith (\(k :=> v) -> showsPrec 2 k . showString " :=> " . showsPrec 1 v) (toList mp) class Enum1 f where type Enum1Info f -- cgit v1.2.3-70-g09d2