Skip to content

Commit 0f851d7

Browse files
committed
Print tuples with racket syntax
1 parent d28fca1 commit 0f851d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gibbon-compiler/src/Gibbon/L1/GenSML.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,13 @@ printerTy1 ty1 d = case ty1 of
383383
[ "case", d, "of"
384384
, parens $ interleave comma $ ("x__" <>) . int . fst <$> zip [1..] uts
385385
, "-> let"
386-
, "val _ = print \"(\""
386+
, "val _ = print \"#(\""
387387
, foldMap ppSub $ zip [1..] uts
388388
, "val _ = print \")\""
389389
, "in ()"
390390
]
391391
where
392-
ppSub (i, x) = "val _ = " <> printerTy1 x ("x__" <> int i)
392+
ppSub (i, x) = "val _ = " <> printerTy1 x ("x__" <> int i) <> "val _ = print \" \""
393393
SymDictTy _m_var _ut -> _
394394
PackedTy s () -> "internal_print_" <> text s <> parens d
395395
VectorTy ut ->

0 commit comments

Comments
 (0)