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:
parent
45c78ed7f3
commit
8093a2b5d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user