Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit b1d632f

Browse files
committed
Serialize products.
1 parent ca3101d commit b1d632f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Serializing/SExpression/Precise.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ instance (GToSExpression f, GToSExpression g) => GToSExpression (f :+: g) where
2626

2727
instance (Constructor c, GToSExpression f) => GToSExpression (M1 C c f) where
2828
gtoSExpression' m n = stringUtf8 (conName m) : gtoSExpression' (unM1 m) (n + 1)
29+
30+
instance (GToSExpression f, GToSExpression g) => GToSExpression (f :*: g) where
31+
gtoSExpression' (l :*: r) = gtoSExpression' l <> gtoSExpression' r

0 commit comments

Comments
 (0)