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

Update for Cabal >= 2.2 and base >= 4.11 #3

Conversation

habibalamin
Copy link

@habibalamin habibalamin commented Sep 10, 2023

This fixes #2, which is Setup.hs not working for Cabal > 2.0.1.1, and an issue without a ticket, which is base >= 4.11 breaking the Monoid instance.

I have not tested anything except compilation with Cabal 3.10.1.0 and base 4.17.2.0 (GHC 9.4.7). It should also work on base 4.18/GHC 9.6, and I've tried to maintain backward-compatibility with older Cabal/GHC/base versions, too.

While I didn't test compilation with older versions, my HLS seemed to be smart enough to pick up on the CPP macros and warn me about, e.g. mappend being (<>) (or vice versa, I forget) only on the older version when I copy-pasted a small piece of code. That same chunk of code didn't have the warning on the #ifdef pertaining to the version I had installed. That was pretty cool.

@habibalamin habibalamin mentioned this pull request Sep 11, 2023
@habibalamin
Copy link
Author

See discussion in #1 for why I've now closed this.

@habibalamin habibalamin deleted the update-for-cabal-2.2-and-base-4.11 branch September 19, 2023 05:25
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.

Setup.hs does not compile with Cabal > 2.0.1.1
1 participant