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

Define a GEq1 instance for Rec1 with GEq1 fields.

This commit is contained in:
Rob Rix 2017-02-21 16:16:08 -05:00
parent 45c78ed7f3
commit 8093a2b5d4

View File

@ -27,3 +27,6 @@ instance GEq1 Par1 where
instance Eq c => GEq1 (K1 i c) where
gliftEq _ (K1 a) (K1 b) = a == b
instance GEq1 f => GEq1 (Rec1 f) where
gliftEq f (Rec1 a) (Rec1 b) = gliftEq f a b