1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Define a GToSExpression instance for :.:.

This commit is contained in:
Rob Rix 2019-10-03 02:42:08 -04:00
parent feac508bb5
commit 70b24a476d
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -70,3 +70,6 @@ instance GToSExpression Par1 where
instance ToSExpression t => GToSExpression (Rec1 t) where instance ToSExpression t => GToSExpression (Rec1 t) where
gtoSExpression (Rec1 t) = pure . toSExpression t gtoSExpression (Rec1 t) = pure . toSExpression t
instance (Foldable f, GToSExpression g) => GToSExpression (f :.: g) where
gtoSExpression = foldMap gtoSExpression . unComp1