Skip to content

Fix test suites with Cabal >= 3.8 #572

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

Merged
merged 4 commits into from
Oct 10, 2022
Merged

Fix test suites with Cabal >= 3.8 #572

merged 4 commits into from
Oct 10, 2022

Conversation

sternenseemann
Copy link
Member

No description provided.

Cabal 3.8 introduced the following new platform related type
constructors:

* S390X, the 64 bit Arch variant of S390
* Wasm32, the 32 bit WASM Arch
* Wasi, the WebAssembly System Interface, a new “OS”

This means that some of the tuples we were checking have a changed
representation when parsed and we need to update the test suite.

We don't need to adjust cabal2nix nor the related packages anywhere
else, as we don't hardcode the old representations for these OSes /
Arches anywhere.
Newly added platforms:

* rx-none
* microblaze-linux
* microblazeel-linux
* microblaze-none
* microblazeel-none
Seems like modules were shuffled around for some reason.
Additionally we allow disabling HLS, since it often lags behind a bit in
terms of support. To get a development environment for GHC 9.4.2, for
example, run:

    nix-shell --argstr ghcVersion "9.4.2" --arg withHls false

(You may need to pass in a more recent nixpkgs manually as well via the
`pkgs` argument.)
@sternenseemann sternenseemann merged commit b3ae6f9 into master Oct 10, 2022
@sternenseemann sternenseemann deleted the Cabal-3.8 branch October 10, 2022 11:51
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.

1 participant