Skip to content

Commit a06d9fa

Browse files
committed
Add a Show instance to CTreeRoot
1 parent 375a233 commit a06d9fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codec/CBOR/Cuddle/CDDL/CTree.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE DataKinds #-}
22
{-# LANGUAGE TypeFamilies #-}
3+
{-# LANGUAGE UndecidableInstances #-}
34

45
module Codec.CBOR.Cuddle.CDDL.CTree where
56

@@ -80,3 +81,5 @@ type Node i = CTreeExt i
8081

8182
newtype CTreeRoot i = CTreeRoot (Map.Map Name (CTree i))
8283
deriving (Generic)
84+
85+
deriving instance Show (CTree i) => Show (CTreeRoot i)

0 commit comments

Comments
 (0)