Skip to content

Strange inferred type of a handler #623

Answered by osa1
osa1 asked this question in Q&A
Dec 18, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Aha, so the problem is I need to use exn instead of fun in the effect operation declaration:

val try_ = handler
  return(x) -> Right(x)
  ctl throw_(exn: string) -> Left(exn)

Maybe the fun/ctl distinction was added after the paper was written?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@osa1
Comment options

@osa1
Comment options

@osa1
Comment options

Answer selected by osa1
@TimWhiting
Comment options

Comment options

You must be logged in to vote
1 reply
@osa1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants