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

Commit 4452c89

Browse files
committed
Serialize D1.
1 parent 0f54a5c commit 4452c89

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
@@ -11,3 +11,6 @@ serializeSExpression t = gtoSExpression (from t) 0 <> "\n"
1111

1212
class GToSExpression f where
1313
gtoSExpression :: f (Int -> Builder) -> (Int -> Builder)
14+
15+
instance GToSExpression f => GToSExpression (M1 D d f) where
16+
gtoSExpression = gtoSExpression . unM1

0 commit comments

Comments
 (0)