Skip to content

Commit 677135a

Browse files
committed
Print arrays Racket-style
1 parent f335418 commit 677135a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,18 +391,18 @@ printerTy1 ty1 d = case ty1 of
391391
PackedTy s () -> "internal_print_" <> text s <> parens d
392392
VectorTy ut ->
393393
parens $ hsep
394-
[ quotePrint "#("
394+
[ quotePrint "#["
395395
, toss $ hsep
396396
[ "case length", d, "of"
397397
, "0 -> ()"
398398
, "1 ->", printerTy1 ut $ "ArraySlice.sub" <> parens (d <> ", 0")
399399
, "_ ->"
400400
, toss $ printerTy1 ut $ "ArraySlice.sub" <> parens (d <> ", 0")
401401
, "ArraySlice.app", parens $
402-
"fn y__ => " <> quotePrint ", " <> printerTy1 ut "y__"
402+
"fn y__ => " <> printerTy1 ut "y__"
403403
, "xs__"
404404
]
405-
, "print \")\""
405+
, "print \"]\""
406406
]
407407
PDictTy _ut _ut' -> _
408408
ListTy ut ->

0 commit comments

Comments
 (0)