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

Fix the Skolem trick with GHC ≥ 9.4 #7

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

ncfavier
Copy link
Contributor

@ncfavier ncfavier commented Aug 24, 2023

Using a data family instead of a type family weirdly prevents the Skolem constructor from being treated as a metavariable, see https://gitlab.haskell.org/ghc/ghc/-/issues/23743#note_522186

Backlog: #2 (comment)

@ali-abrar @cgibbard

@Ericson2314
Copy link
Member

@ncfavier Can you add back the removed tests to "prove it"?

@Ericson2314
Copy link
Member

Ericson2314 commented Nov 20, 2023

Sorry I was really unclear --- add the skipped-over GHC versions (in the cabal file and github actions) to prove it works on them too.

@ncfavier
Copy link
Contributor Author

This should do it, if there's anything else feel free to push directly to this branch.

@Ericson2314
Copy link
Member

Now there are failures in the older versions? Do we need to conditionally switch between type and data family?

Using a data family instead of a type family weirdly prevents the
`Skolem` constructor from being treated as a metavariable, see
https://gitlab.haskell.org/ghc/ghc/-/issues/23743#note_522186
@ncfavier
Copy link
Contributor Author

No I was just confused and undid the wrong thing.

sorki added a commit to haskell-nix/hnix-store that referenced this pull request Dec 2, 2023
sorki added a commit to haskell-nix/hnix-store that referenced this pull request Dec 3, 2023
@ncfavier
Copy link
Contributor Author

ncfavier commented Dec 4, 2023

(This should be good to go.)

@Ericson2314 Ericson2314 merged commit 6c42332 into obsidiansystems:develop Dec 6, 2023
sorki added a commit to haskell-nix/hnix-store that referenced this pull request Dec 6, 2023
@Ericson2314
Copy link
Member

@ncfavier ncfavier deleted the fix-skolem-trick branch December 6, 2023 15:49
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.

2 participants