-
Notifications
You must be signed in to change notification settings - Fork 217
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
Build failure on GHC 9.8.1: 'Illegal invisible type variable binder' #2567
Comments
Does the code merged in fix your issue? |
Oh, seems that it doesn't , I am able to reproduce with
|
I think I might've missed these because I didn't pass |
It looks like enabling |
For reference here's the error we get if we enable TypeAbstractions and the generated TH splice Details
|
<dhall-lang#2542> allowed `dhall` to compile with template-haskell-2.21 and GHC-9.8 by adapting to the addition of a binder visibility field on type variables. Previously all binders were taken to be required, but in GHC-9.8 the possibility of invisible binders was introduced. The above patch mistakenly set all binders generated by Dhall to be invisible, rather than default value of required. This changes the semantics of the code and broke some examples in the test suite. This patch fixes this by correctly setting binders to be BndrReq. Resolves dhall-lang#2567
dhall-lang#2542 allowed `dhall` to compile with template-haskell-2.21 and GHC-9.8 by adapting to the addition of a binder visibility field on type variables. Previously all binders were taken to be required, but in GHC-9.8 the possibility of invisible binders was introduced. The above patch mistakenly set all binders generated by Dhall to be invisible, rather than default value of required. This changes the semantics of the code and broke some examples in the test suite. This patch fixes this by correctly setting binders to be BndrReq. Resolves dhall-lang#2567
#2622 should fix this by restoring the TH generated code to what it was before GHC-9.8 |
Hi,
when building
dhall
1.42.1 on Arch Linux with GHC 9.8.1 andtemplate-haskell
2.21.0.0, the following error occurs while building the tests:The same error occurs 4 times (see Appendix). The error itself suggests to use TypeAbstractions to fix the issue.
The offending line is dhall/tests/Dhall/Test/TH.hs#L111, and the issue doesn't seem fixed on
main
.template-haskell
from 2.21 onwards supports Invisible binders in type declarations, see also the migration guide and GHC proposal #425.dhall
1.42.1 advertises support fortemplate-haskell
2.21 and GHC 9.8 - not sure what's going on there.-- Vekhir
Appendix
The text was updated successfully, but these errors were encountered: