Replies: 1 comment 13 replies
-
It's absolutely fine. Why do you call it a hack? 🙂 You're simply restricting the actions taken by Such effect has awkward usability though. Try running it, then putting one or more additional effect on the effect stack and invoke |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider this contrived effect:
Usually in order to interpret it, one would have to use localUnlift to convert localEs to es, which involves specifying an unlift strategy. However, we can change the definition a bit:
Now the interpreter knows that localEs and es are the same, so localUnlift isn't needed, which bypasses the unlift strategy. That seems bad, because one would think the unlift strategy is there for a reason, but on the other hand, the effects "below" SomeEffect are known by runSomeEffect to be es either way, so the distinction between es and localEs seems artificial. Am I missing something? Is the hack that bypasses localUnlift safe or bad?
Beta Was this translation helpful? Give feedback.
All reactions