Skip to content

Fix #339: do not emit GHC-7.10 conditionals #340

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

Merged
merged 4 commits into from
Jul 17, 2025

Conversation

andreasabel
Copy link
Member

@andreasabel andreasabel commented Jul 16, 2025

Stop emitting GHC-7.10 conditionals. Support for GHC 7 has already been dropped.
In particular, do not emit {-# LANGUAGE PartialTypeSignatures #-} twice.

Closes #339.

Fix #341: import Data.Function is emitted twice.

Support for GHC 7 has already been dropped.
Manually bumped the generator version from 2.1.5 to 2.1.6 here.
@andreasabel andreasabel requested a review from sgraf812 July 16, 2025 12:52
@sgraf812
Copy link
Collaborator

LGTM! Thanks for catching this.

@andreasabel
Copy link
Member Author

Thanks for the review, @sgraf812 !
I don't know the current release procedure for happy, could you bump happy to 2.1.6 and release it with this PR?

@andreasabel andreasabel added this to the 2.1.6 milestone Jul 16, 2025
@andreasabel andreasabel self-assigned this Jul 17, 2025
@andreasabel
Copy link
Member Author

Ah, I found the lib/hackage-upload.sh script.
Here are the candidates:

@andreasabel andreasabel merged commit d1c2993 into master Jul 17, 2025
28 checks passed
@andreasabel andreasabel deleted the language-partial-tysig branch July 17, 2025 09:17
@andreasabel
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data.Function is imported twice in generated code Happy emits {-# LANGUAGE PartialTypeSignatures #-} twice
2 participants