Skip to content

Commit

Permalink
Fix show instance by porting dlist-nonempty version (#95)
Browse files Browse the repository at this point in the history
Fixes #96
  • Loading branch information
414owen authored Aug 31, 2021
1 parent 157a97d commit 697cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/DList/DNonEmpty/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ instance Read a => Read (DNonEmpty a) where
instance Show a => Show (DNonEmpty a) where
showsPrec p dl =
showParen (p > 10) $
showString "fromNonEmpty " . shows (toNonEmpty dl)
showString "fromNonEmpty " . showsPrec 11 (toNonEmpty dl)

instance Functor DNonEmpty where
{-# INLINE fmap #-}
Expand Down

0 comments on commit 697cf20

Please sign in to comment.