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

Commit 50b9298

Browse files
committed
Serialize unit constructors.
1 parent 8e98f7e commit 50b9298

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
@@ -51,3 +51,6 @@ instance (Constructor c, GToSExpression f) => GToSExpression (M1 C c f) where
5151

5252
instance (GToSExpression f, GToSExpression g) => GToSExpression (f :*: g) where
5353
gtoSExpression (l :*: r) = gtoSExpression l <> gtoSExpression r
54+
55+
instance GToSExpression U1 where
56+
gtoSExpression _ _ = []

0 commit comments

Comments
 (0)