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

Widen support to GHC-7.4...GHC-8.8 #74

Merged
merged 2 commits into from
May 17, 2019
Merged

Widen support to GHC-7.4...GHC-8.8 #74

merged 2 commits into from
May 17, 2019

Conversation

phadej
Copy link
Contributor

@phadej phadej commented May 6, 2019

  • GHC-8.8 is straight-forward MONAD_NO_FAIL fix
  • GHC-7.4 + GHC-7.6 is trickier
    • motivation We'd like to use prettyprinter in trifecta and criterion, and it would be nice to keep support for older GHCs (especially for criterion). In this case the price is not that big.
    • no LambdaCase
    • and AutoDeriveTypeable -> DataDeriveTypeable
    • there's small problem, pgp-wordlist is base >=4.6 (not base >= 4.5), but with --allow-older=pgp-wordlist:base it compiles fine.

There are few follow-ups which I'd like to do:

  • extend pgp-wordlist support to GHC-7.4 too (should be simple)
  • use haskell-ci for CI, so we can test old GHCs (and new!)
  • split benchmarks into own package, because if/when criterion would depend on prettyprint there would be nasty package loop. Similar thing is done in e.g. Convert to cabal.project haskell/containers#626

cc @RyanGlScott

phadej added 2 commits May 6, 2019 09:44
There is breakage due Monad without fail.
phadej added a commit to phadej/pgp-wordlist that referenced this pull request May 6, 2019
@phadej
Copy link
Contributor Author

phadej commented May 6, 2019

Looks like travis is disabled for this and quchen/pgp-wordlist#3

@RyanGlScott
Copy link

I certainly appreciate the work that goes into PRs like this. Do note that if your eventual goal is to get criterion to use prettyprinter, the real challenge is going to be optparse-applicative (on top of which criterion builds its pretty-printed CLI --help output), which supports all the way back to GHC 7.0. (See also pcapriotti/optparse-applicative#273).

@phadej
Copy link
Contributor Author

phadej commented May 6, 2019 via email

@phadej
Copy link
Contributor Author

phadej commented May 17, 2019

ping @quchen

@quchen quchen merged commit ce70ee0 into quchen:master May 17, 2019
@quchen
Copy link
Owner

quchen commented May 17, 2019

PGP-Wordlist is only a test dependency, and not an important one at that. I think it can easily be removed.

@phadej phadej deleted the ghc-8.8 branch May 17, 2019 07:52
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.

3 participants