We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f505c5c commit d28fca1Copy full SHA for d28fca1
gibbon-compiler/src/Gibbon/L1/GenSML.hs
@@ -377,12 +377,15 @@ printerTy1 ty1 d = case ty1 of
377
FloatTy -> printer "Float" d
378
SymTy -> _
379
BoolTy -> parens $ "(fn true => print \"True\" | false => print \"False\") " <> d
380
+ ProdTy [] -> "let val () = " <> d <> " in (print \"#()\") end"
381
ProdTy uts ->
382
parens $ hsep
383
[ "case", d, "of"
384
, parens $ interleave comma $ ("x__" <>) . int . fst <$> zip [1..] uts
385
, "-> let"
386
+ , "val _ = print \"(\""
387
, foldMap ppSub $ zip [1..] uts
388
+ , "val _ = print \")\""
389
, "in ()"
390
]
391
where
0 commit comments