git.iko.soy/rowtype-yoga/purescm
on bytevector help sign in
Add note about Fail
commit73d1e45aebeda1dfabb5a0eec68008827cb967c5 authorpurefunctor <purefunctor@pm.me> dateFri 24 Mar 2023, 18:52 (4 years ago) parentd5db3fb
1 file changed+3
src/PureScript/Backend/Chez/Convert.purs+3
src/PureScript/Backend/Chez/Convert.purs+3
@@ -151,6 +151,9 @@ codegenExpr codegenEnv@{ currentModule } (NeutralExpr s) = case s of
151151 S.Identifier "prim-undefined"
152152
153153 Fail i ->
154+ -- Note: This can be improved by using `error`, but it requires
155+ -- that we track where exactly this `Fail` is defined. We can
156+ -- make use of the `codegenEnv` for this.
154157 S.List
155158 [ S.Identifier "scm:raise"
156159 , S.List