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

Allow building with GHC 9.8 #255

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Allow building with GHC 9.8 #255

merged 4 commits into from
Mar 4, 2024

Conversation

RyanGlScott
Copy link
Contributor

@RyanGlScott RyanGlScott commented Feb 26, 2024

This patch contains a variety of fixes needed to build the libraries in the what4 repo with GHC 9.8:

  • Bump the upper version bounds on base and text to allow building with the versions that are bundled with GHC 9.8 (base-4.19.* and text-2.1.*, respectively).
  • Replace uses of head and tail (which trigger -Wx-partial warnings with GHC 9.8) with total functions or panics, depending on what is appropriate.
  • Bump the aig submodule to bring in the changes from Allow building with base-4.19.* (GHC 9.8) aig#16 and Allow building with tasty-1.5.* aig#17.

RyanGlScott and others added 2 commits March 4, 2024 09:37
This patch contains a variety of fixes needed to build the libraries in the
what4 repo with GHC 9.8:

* Bump the upper version bounds on `base` and `text` to allow building with the
  versions that are bundled with GHC 9.8 (`base-4.19.*` and `text-2.1.*`,
  respectively).
* Replace uses of `head` and `tail` (which trigger `-Wx-partial` warnings with
  GHC 9.8) with total functions or `panic`s, depending on what is appropriate.
* Bump the `aig` submodule to bring in the changes from GaloisInc/aig#16 and
  GaloisInc/aig#17.
The previous code, defined in terms of `unsnoc`, required multiple `panic`
cases, which was somewhat unsightly. This new implementation is functionally
equivalent, does not require any `panic` fall-through cases, and is much nicer
to look at.
@RyanGlScott RyanGlScott merged commit c011f5b into master Mar 4, 2024
28 checks passed
@RyanGlScott RyanGlScott deleted the ghc-9.8 branch March 4, 2024 20:08
RyanGlScott added a commit that referenced this pull request May 15, 2024
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.

None yet

2 participants