1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Define a Show1 instance for Join.

This commit is contained in:
Rob Rix 2017-09-10 19:34:49 +01:00
parent bb11787db9
commit 13c0b6d496

View File

@ -52,3 +52,6 @@ liftShowListBoth sp sl = showListWith (liftShowsPrecBoth sp sl 0)
instance Eq2 p => Eq1 (Join p) where
liftEq eq (Join a1) (Join a2) = liftEq2 eq eq a1 a2
instance Show2 p => Show1 (Join p) where
liftShowsPrec sp sl d = showsUnaryWith (liftShowsPrec2 sp sl sp sl) "Join" d . runJoin