Skip to content

Commit

Permalink
Print gibbon_main in the sml backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jazullo committed Oct 4, 2023
1 parent 29f6f52 commit 8fcbf06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gibbon-compiler/src/Gibbon/L1/GenSML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ reduceFunDefs keyword funDef doc =
ppMainExpr :: Maybe (Exp1, Ty1) -> Doc
ppMainExpr opt = case opt of
Nothing -> mempty
Just (exp0, _) ->
"val _ = " <> ppE exp0 <> semi
Just (exp1, ty1) ->
"val _ = " <> printerTy1 ty1 (ppE exp1) <> semi
<> "\nval _ = print \"\\n\""

ppDDefs :: DDefs1 -> Doc
Expand Down

0 comments on commit 8fcbf06

Please sign in to comment.