1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Define a GSum instance for Rec1.

This commit is contained in:
Rob Rix 2019-09-23 18:01:06 -04:00
parent 5231b4f282
commit 377fe62b9a
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -192,3 +192,7 @@ instance (GSum f, GSum g) => GSum (f :+: g) where
type Members (f :+: g) = Members f :+: Members g
gmembers (L1 l) = L1 (gmembers l)
gmembers (R1 r) = R1 (gmembers r)
instance GSum (Rec1 f) where
type Members (Rec1 f) = f
gmembers = unRec1