Skip to content

Commit fcb4be7

Browse files
committed
Improve formatting of product printer
Improve code quality
1 parent 0f851d7 commit fcb4be7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,11 @@ printerTy1 ty1 d = case ty1 of
389389
, "in ()"
390390
]
391391
where
392-
ppSub (i, x) = "val _ = " <> printerTy1 x ("x__" <> int i) <> "val _ = print \" \""
392+
ppSub (i, x) = hsep
393+
[ "val _ ="
394+
, printerTy1 x $ "x__" <> int i
395+
, "val _ = print \" \""
396+
]
393397
SymDictTy _m_var _ut -> _
394398
PackedTy s () -> "internal_print_" <> text s <> parens d
395399
VectorTy ut ->

0 commit comments

Comments
 (0)