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

Possibly a mistake that causes confusion #285

Closed
NariyasuHeseri opened this issue Feb 24, 2022 · 2 comments
Closed

Possibly a mistake that causes confusion #285

NariyasuHeseri opened this issue Feb 24, 2022 · 2 comments

Comments

@NariyasuHeseri
Copy link

Screenshot_20220225-013554

On page 349 (see the screenshot),
shouldn't Store f :: s -> Store f s be Store f :: s -> Store (s -> a) s?
The expression on the right-hand side of :: is a type and apparently f is a value with type s -> a.

@BartoszMilewski
Copy link
Collaborator

The notation might be a bit confusing. What it says is that the type of the two expressions is the same. And a lambda would make it clrearer:

Store f ~ \s -> Store f s

@NariyasuHeseri
Copy link
Author

The notation might be a bit confusing. What it says is that the type of the two expressions is the same. And a lambda would make it clrearer:

Store f ~ \s -> Store f s

Thanks!

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

2 participants