Minor tweaks to style and rule rendering

This commit is contained in:
2023-11-26 16:32:27 -08:00
parent 33c3f87564
commit 4deb7bc556
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ termToLatex f t =
case t of
Call "type" [t1, t2] -> termToLatex f t1 ++ " : " ++ termToLatex f t2
Call "intlit" [t1] -> termToLatex f t1
Call "strlit" [t1] -> termToLatex f t1
Call "tpair" [t1, t2] -> termToLatex f t1 ++ "\\times" ++ termToLatex f t2
Call "plus" [t1, t2] -> termToLatex f t1 ++ " + " ++ termToLatex f t2
Call "pair" [t1, t2] -> "(" ++ termToLatex f t1 ++ ", " ++ termToLatex f t2 ++ ")"