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:
parent
a4a4074a22
commit
dd33e479ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user