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:
parent
feac508bb5
commit
70b24a476d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user