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

Use new, safer GHC.TypeLits API to define reify{Nat,Symbol} #53

Merged
merged 2 commits into from Feb 28, 2023

Conversation

RyanGlScott
Copy link
Collaborator

With base-4.18 (GHC 9.6), we can now define reifyNat and reifySymbol without any uses of unsafeCoerce. Hooray! What's more, this does not exhibit the incoherence issues seen when trying to use withDict to define reify or give. See this comment for an explanation of why this is the case: haskell/core-libraries-committee#85 (comment)

This addresses one part of #44. It does not fix it completely, as it does not address reify and give, which are separate matters.

With `base-4.18` (GHC 9.6), we can now define `reifyNat` and `reifySymbol`
without any uses of `unsafeCoerce`. Hooray! What's more, this does not exhibit
the incoherence issues seen when trying to use `withDict` to define `reify` or
`give`. See this comment for an explanation of why this is the case:
haskell/core-libraries-committee#85 (comment)

This addresses one part of #44. It does not fix it completely, as it does not
address `reify` and `give`, which are separate matters.
@RyanGlScott
Copy link
Collaborator Author

I hope that the silly build plan that the GHC 9.6 CI job picks will be resolved by haskell/aeson#1005.

@RyanGlScott RyanGlScott merged commit eed1ee9 into master Feb 28, 2023
@RyanGlScott RyanGlScott deleted the T44-reifyNat-reifySymbol branch February 28, 2023 11:57
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.

None yet

1 participant