Skip to content

Don't explain Coercible as a class with compiler-generated instances#3999

Merged
kl0tl merged 5 commits intopurescript:masterfrom
kl0tl:coercible-documentation
Feb 17, 2021
Merged

Don't explain Coercible as a class with compiler-generated instances#3999
kl0tl merged 5 commits intopurescript:masterfrom
kl0tl:coercible-documentation

Conversation

@kl0tl
Copy link
Copy Markdown
Member

@kl0tl kl0tl commented Jan 28, 2021

The documentation we have for Coercible seems to be based on the draft of the Safe Zero-cost Coercions for Haskell paper but its latest revision moves away from compiler-generated instances. This is explained in the section 7.2 Prior version of Coercible of the paper.

This pull request also adds links to the safe-coerce package on Pursuit and to the documentation about roles I’m proposing to add to the language reference in purescript/documentation#371.

Rendered documentation

Prim Coerce Coercible

@kl0tl kl0tl force-pushed the coercible-documentation branch from bd923eb to 5ff7625 Compare February 17, 2021 20:37
@kl0tl kl0tl merged commit f0d4660 into purescript:master Feb 17, 2021
@kl0tl kl0tl deleted the coercible-documentation branch February 17, 2021 20:59
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.

5 participants