Minor tweaks to style and rule rendering

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

View File

@ -39,6 +39,11 @@ input[type="text"] {
padding: 1em;
border: 1px solid #c3c3c3;
border-radius: 0.5em;
margin-top: 1em;
}
.elm-root h2 {
margin-bottom: 0.5em;
}
</style>
</head>

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 ++ ")"