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

Support building with GHC 9.4 #1499

Merged
merged 4 commits into from
Feb 27, 2023
Merged

Support building with GHC 9.4 #1499

merged 4 commits into from
Feb 27, 2023

Conversation

RyanGlScott
Copy link
Contributor

This contains a varity of changes needed to make the libraries in the cryptol
repo compile with GHC 9.4:

  • GHC 9.4 is pickier about requiring the use of the FlexibleContexts extension, that is now enabled in more places.
  • I bumped the upper version bounds of various dependencies to allow them to build with GHC 9.4.

Fixes #1487.

This contains a varity of changes needed to make the libraries in the `cryptol`
repo compile with GHC 9.4:

* GHC 9.4 is pickier about requiring the use of the `FlexibleContexts`
  extension, that is now enabled in more places.
* I bumped the upper version bounds of various dependencies to allow them to
  build with GHC 9.4.

Fixes #1487.
GHC 9.4 adds `-Wtype-equality-requires-operators` to `-Wall`, which warns about
certain uses of type equalities that are not forward-compatible with planned
changes in GHC. See [this
section](https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.4?version_id=b60e52482a666d25638d59cd7e86851ddf971dc1#-is-now-a-type-operator)
of the GHC 9.4 Migration Guide. These warnings are easily fixed by enabling the
`TypeOperators` extension.
@RyanGlScott RyanGlScott requested review from yav and kquick February 13, 2023 12:40
@RyanGlScott RyanGlScott merged commit 4c1c5fc into master Feb 27, 2023
@RyanGlScott RyanGlScott deleted the ghc-9.4 branch February 27, 2023 18:12
@RyanGlScott RyanGlScott mentioned this pull request Feb 27, 2023
RyanGlScott added a commit that referenced this pull request Mar 10, 2023
The downstream `saw-remote-api` library doesn't quite support `vector-0.13.*`
yet, but #1499 accidentally restricted `cryptol-remote-api`'s
build plan to only allow `vector-0.13.*`. This restores the ability to build
`cryptol-remote-api` with `vector-0.12.*` for `saw-remote-api`'s sake.
RyanGlScott added a commit that referenced this pull request Mar 13, 2023
…1506)

The downstream `saw-remote-api` library doesn't quite support `vector-0.13.*`
yet, but #1499 accidentally restricted `cryptol-remote-api`'s
build plan to only allow `vector-0.13.*`. This restores the ability to build
`cryptol-remote-api` with `vector-0.12.*` for `saw-remote-api`'s sake.
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.

Update to build under GHC-9.2.5, and hopefully 9.4.4
2 participants