summaryrefslogtreecommitdiff
path: root/src/Data/Dependent/EnumMap
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-09-11 21:05:14 +0200
committerTom Smeding <tom@tomsmeding.com>2024-09-11 21:05:14 +0200
commit1372ecf48af80e7f795b1b1c11d6a63b5235bd77 (patch)
tree41f9326aac48f07a9c925b41656dad1fec49590d /src/Data/Dependent/EnumMap
parent252753f898bb67b3f42f83248a85638b1bc11fb4 (diff)
Make Show instance print 'fromList', not 'DEnumMap'
Diffstat (limited to 'src/Data/Dependent/EnumMap')
-rw-r--r--src/Data/Dependent/EnumMap/Strict/Internal.hs2
1 files changed, 1 insertions, 1 deletions
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