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

Fix documentation for callCC #132

Merged
merged 1 commit into from
Oct 15, 2020
Merged

Fix documentation for callCC #132

merged 1 commit into from
Oct 15, 2020

Conversation

ursi
Copy link
Contributor

@ursi ursi commented Oct 11, 2020

Fixed: return -> pure
Added a type signature to setTimeout: If someone is trying to figure out what's going on here and they look up setTimeout on pursuit, they will find setTimeout :: Int -> Effect Unit -> Effect TimeoutId in js-timers, which does not work here at all. The added type signature shows we are intentionally using a simplified version of the function.

Fixed: `return` -> `pure`
Added a type signature to `setTimeout`: If someone is trying to figure out what's going on here and they look up `setTimeout` on pursuit, they will find `setTimeout :: Int -> Effect Unit -> Effect TimeoutId` in `js-timers`, which does not work here at all. The added type signature shows we are intentionally using a simplified version of the function.
@hdgarrood
Copy link
Contributor

Thanks!

@hdgarrood hdgarrood merged commit ca04d73 into purescript:master Oct 15, 2020
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

Successfully merging this pull request may close these issues.

3 participants