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:
parent
5231b4f282
commit
377fe62b9a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user