Skip to content

Fix documentation for callCC#132

Merged
hdgarrood merged 1 commit intopurescript:masterfrom
ursi:patch-1
Oct 15, 2020
Merged

Fix documentation for callCC#132
hdgarrood merged 1 commit intopurescript:masterfrom
ursi:patch-1

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

3 participants