mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Define a GSum instance for M1.
This commit is contained in:
parent
b7a93aed3d
commit
30dad2da72
@ -183,3 +183,7 @@ instance {-# OVERLAPPABLE #-}
|
||||
class GSum t where
|
||||
type Members t :: (* -> *)
|
||||
gmembers :: t a -> Members t a
|
||||
|
||||
instance GSum f => GSum (M1 i c f) where
|
||||
type Members (M1 i c f) = Members f
|
||||
gmembers = gmembers . unM1
|
||||
|
Loading…
Reference in New Issue
Block a user