Address issues with unify's case tree in idris

Clean up some stuff in prelude
Add parser for where
This commit is contained in:
2024-11-19 20:50:52 -08:00
parent 9b19c569c9
commit c665310653
10 changed files with 81 additions and 58 deletions

View File

@@ -155,7 +155,7 @@ termToJS env (CCase t alts) f =
(JCase (Dot (Var nm) "tag") (map (termToJSAlt env nm) alts))
-- REVIEW the escaping in show might not match JS
-- FIXME escaping is wrong, e.g. \215 instead of \xd7
jsString : String -> Doc
jsString str = text (show str)