Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of 'interpret' in document is incorrect #18

Open
ENvironmentSet opened this issue Aug 3, 2023 · 0 comments
Open

Definition of 'interpret' in document is incorrect #18

ENvironmentSet opened this issue Aug 3, 2023 · 0 comments

Comments

@ENvironmentSet
Copy link

Definition of interpret is given as following in the 'Simple effect handlers' section:

interpret f = handle (liftH . f)

However, this must not have type checked since handle requires term of type (a -> Eff effs r) before term of type (forall effs' b. eff :< effs' => eff (Eff effs') b -> Handle eff effs a r effs' b) (which is liftH . f). Therefore I checked definition of interpret in codebase and it was interpret f = handle pure (liftH . f). I think it would be better to remedy this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant