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

Add coerce primitive #237

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Add coerce primitive #237

merged 1 commit into from
Dec 6, 2023

Conversation

naucke
Copy link
Contributor

@naucke naucke commented Nov 28, 2023

Use unsafeCoerce when there is an (erased) proof that types are identical.

Fixes: #135

Q: (where) should this be documented?

Use `unsafeCoerce` when there is an (erased) proof that types are identical.

Fixes: agda#135
@jespercockx
Copy link
Member

Thanks! The documentation should go into https://agda.github.io/agda2hs/features.html I guess, but that page really needs to be split up at some point.

@jespercockx jespercockx added this to the 1.2 milestone Dec 6, 2023
@jespercockx
Copy link
Member

This seems simple and straightforward so I'm slipping it into the release of 1.2.

@jespercockx jespercockx merged commit ef4d175 into agda:master Dec 6, 2023
6 checks passed
@naucke naucke deleted the coerce branch May 13, 2024 16:54
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.

Coercion compiled to unsafeCoerce
2 participants