-
Notifications
You must be signed in to change notification settings - Fork 23
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 ghc version CPP #123
Fix ghc version CPP #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, why is this needed?
I checked that this compiled with ghc-9.2.8
.
In fact I just compiled HEAD
with ghc-8.10,7
, ghc-9.2.8
and ghc-9.6.2
.
fb482b2
to
ba020ab
Compare
ba020ab
to
0eecaa8
Compare
Compiling on those three compilers was not the problem. (I was, however, for some strange reason, I was getting a redundant pattern match warning.) The actual problem was that when I came to try to compile This is the failing job that shows I've also broken up the constraints so that the CPP only wraps around those constaints that differ so we don't have to repeat them for both CPP cases. |
For reference:
|
…able-latest Temporarily disable `latest` era default logic
Changelog
Context
This is necessary to compile
cardano-cli
withghc-9.2.x
.Moreover,
__GLASGOW_HASKELL__
seemed to be working unreliably for me, so it has been switched to useMIN_VERSION_base
instead.Checklist
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.