Skip to content

Commit 2e2ed98

Browse files
jaredjaredponn
authored andcommitted
Code generation bug fixes + runtime fixes for TS
1 parent 3910de1 commit 2e2ed98

File tree

1 file changed

+4
-4
lines changed
  • lambda-buffers-codegen/src/LambdaBuffers/Codegen/Typescript/Print

1 file changed

+4
-4
lines changed

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Typescript/Print/LamVal.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ printCtorE ((_, tyN), (ctorN, _)) prodVals = do
450450
[ lbrace
451451
, indent 2 $
452452
vsep
453-
[ "name" <+> colon <+> pretty '\'' <> ctorNDoc <> pretty '\'' <> comma
454-
, "fields" <+> colon <+> singleDoc
453+
[ "fields" <+> colon <+> singleDoc <> comma
454+
, "name" <+> colon <+> pretty '\'' <> ctorNDoc <> pretty '\''
455455
]
456456
, rbrace
457457
]
@@ -461,8 +461,8 @@ printCtorE ((_, tyN), (ctorN, _)) prodVals = do
461461
[ lbrace
462462
, indent 2 $
463463
vsep
464-
[ "name" <+> colon <+> pretty '\'' <> ctorNDoc <> pretty '\'' <> comma
465-
, "fields" <+> colon <+> encloseSep lbracket rbracket comma prodDocs
464+
[ "fields" <+> colon <+> encloseSep lbracket rbracket comma prodDocs <> comma
465+
, "name" <+> colon <+> pretty '\'' <> ctorNDoc <> pretty '\''
466466
]
467467
, rbrace
468468
]

0 commit comments

Comments
 (0)