1
1
mirror of https://github.com/github/semantic.git synced 2025-01-09 00:56:32 +03:00

Don’t parenthesize Nil.

This commit is contained in:
Rob Rix 2017-10-23 10:14:21 -04:00
parent a4a4074a22
commit dd33e479ea

View File

@ -53,7 +53,7 @@ instance (Show h, Show (Record t)) => Show (Record (h ': t)) where
showsPrec n (h :. t) = showParen (n > 0) $ showsPrec 1 h . (" :. " <>) . shows t
instance Show (Record '[]) where
showsPrec n Nil = showParen (n > 0) ("Nil" <>)
showsPrec _ Nil = showString "Nil"
instance (Eq h, Eq (Record t)) => Eq (Record (h ': t)) where
(h1 :. t1) == (h2 :. t2) = h1 == h2 && t1 == t2