1
1
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:
Rob Rix 2019-09-23 18:00:46 -04:00
parent b7a93aed3d
commit 30dad2da72
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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