Skip to content

Capturing the continuation of an effect invocation #267

Answered by arybczak
osa1 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure how to capture the continuation in throw. Is this possible?

No.

You can't have access to continuations and MonadUnliftIO instance at the same time (because of functions like bracket or forkIO). See this post for more information.

Is there any particular reason for you trying to reimplement Error?

EDIT: I see your Exception is an amalgamation of Error and Coroutine. But you can't do Couroutine with effectful, so yeah, that won't work.

Replies: 1 comment 1 reply

Comment options

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

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