idCase test

This commit is contained in:
crumbtoo
2023-12-14 14:04:51 -07:00
parent eaac7ad7a3
commit 1d5af748b3
3 changed files with 14 additions and 2 deletions

View File

@@ -46,8 +46,7 @@ type Floater = StateT [Name] (Writer [ScDef'])
runFloater :: Floater a -> (a, [ScDef'])
runFloater = flip evalStateT ns >>> runWriter
where
-- TODO: safer, uncapturable names
ns = [ "nonstrict_case_" ++ showHex n "" | n <- [0..] ]
ns = [ "$nonstrict_case_" ++ showHex n "" | n <- [0..] ]
-- TODO: formally define a "strict context" and reference that here
-- the returned ScDefs are guaranteed to be free of non-strict cases.