Closed andreasabel closed 3 weeks ago
What's up with your CI?
@andreasabel thank you for this PR. We are currently switching from Buildkite to GitHub Actions in #267. I hope we'll finish soon and then CI might start working in this PR after rebasing on the latest master
branch.
Thanks for the heads up, @gromakovsky ! I leave further handling of this PR to you, please use/modify it in any way you want.
After making it build (mentioned in other comment), tests are passing, but part of the CLI help message has to be fixed:
I can reproduce it with the stack build, but it does not happen when built with GHC 9.2.8 on cabal.
However, the stack build uses optparse-applicative-0.16
rendering this whole enterprise obsolete (compatibility with 0.18).
I suppose this PR comes too early, should be reconsidered when the build basis has moved on to stack nightly or an LTS that packages 0.18.
but it does not happen when built with GHC 9.2.8 on cabal
So all the points that I mentioned seem to be related to the GHC version difference. We will go back to this PR when upgrading the stack setup, probably after finishing the ongoing CI work!
Not knowing about this PR, I ended up with a similar fix in https://github.com/serokell/xrefcheck/commit/74ed94155c56aa9dc6fd09953e27131d740ce63a.
So I think all relevant changes are now in master
. Feel free to reopen if I missed something.
optparse-applicative-0.18
switched toprettyprinter
, so some reexports are missing now.This PR restores compatibility with the latest
optparse-applicative
.I simplified the code to display the help text, but the rendering still looks fine:
So maybe the code was unnecessary complicated to begin with.
On hackage I added upper bound
optparse-applicative < 0.18
, e.g. https://hackage.haskell.org/package/xrefcheck-0.2.2/revisions/.