-
The code below is copied from "Structured Asynchrony with Algebraic Effects" and modified for the syntax changes in the current version:
Error:
It seems like desugaring details leaked into the erorr message, because I don't use Questions:
I also tried this syntax:
But it generates the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm not sure about the reasoning behind this, but it compiles if you make |
Beta Was this translation helpful? Give feedback.
-
Another code from the paper that doesn't type check:
Output:
How can |
Beta Was this translation helpful? Give feedback.
Aha, so the problem is I need to use
exn
instead offun
in the effect operation declaration:Maybe the
fun
/ctl
distinction was added after the paper was written?