mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Serialize products.
This commit is contained in:
parent
ca3101d432
commit
b1d632fb2d
@ -26,3 +26,6 @@ instance (GToSExpression f, GToSExpression g) => GToSExpression (f :+: g) where
|
||||
|
||||
instance (Constructor c, GToSExpression f) => GToSExpression (M1 C c f) where
|
||||
gtoSExpression' m n = stringUtf8 (conName m) : gtoSExpression' (unM1 m) (n + 1)
|
||||
|
||||
instance (GToSExpression f, GToSExpression g) => GToSExpression (f :*: g) where
|
||||
gtoSExpression' (l :*: r) = gtoSExpression' l <> gtoSExpression' r
|
||||
|
Loading…
Reference in New Issue
Block a user