-
-
Notifications
You must be signed in to change notification settings - Fork 154
distribution-nixpkgs: support Cabal 3.8 #571
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In preparation of making this repository a monorepo of cabal2nix and related packages (distribution-nixpkgs, hackage-db, language-nix, …), we'll move cabal2nix into its own subfolder and update CI and cabal.project accordingly. The doc folder is left as-is for now, since haskell4nix.readthedocs.io probably has the location configured statically.
* Add dependencies of hackage-db, languagae-nix and distribution-nixpkgs to shell environment, drop their nixpkgs versions. * Always build hackage-db examples, so they are not broken accidentally.
* Pick the widest common set of GHC major release series to test for all packages and bump to the latest available one. Sadly we can't test 8.6.5 anymore and haskell-ci doesn't know about 9.2.3 yet. * Include all packages tracked by the cabal.project file * Apply PackageMap.hs doctest workaround for distribution-nixpkgs * hlint will need to be reenabled later, see NixOS#565.
* Many Haskell-related files are no longer rooted to the repository root * hackage2nix ignores are no longer relevant after NixOS#519.
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.)
b2dcd4b
to
9b5c64b
Compare
sternenseemann
added a commit
to lf-/nixpkgs
that referenced
this pull request
Oct 2, 2022
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
sternenseemann
added a commit
to NixOS/nixpkgs
that referenced
this pull request
Oct 2, 2022
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
93b776a
to
240f130
Compare
j6carey
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Sep 27, 2023
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
j6carey
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Nov 10, 2023
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
jsoo1
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Nov 13, 2023
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
j6carey
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Dec 17, 2023
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
tm-drtina
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Feb 27, 2024
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
tm-drtina
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Apr 8, 2024
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
tm-drtina
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
May 16, 2024
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
tm-drtina
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Jun 7, 2024
This change introduces some actual overrides in configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of getting a basic 9.4 package set up. In particular the following “interesting” packages are working: * hpack * hoogle * cabal2nix * cabal-install You can get a better overview by looking at the overrides and the versionedCompilerJobs in release-haskell.nix. Next obvious steps would be working towards basic HLS support, but it seems that basically none of the plugins are working so far. Big blockers here: * alanz/ghc-exactprint#114 * ndmitchell/hlint#1413 * haskell/haskell-language-server#3190 We ourselves have some churn to take care of and should try to release the changes in NixOS/cabal2nix#571 soon. Co-authored-by: Rebecca Turner <[email protected]> Co-authored-by: sternenseemann <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.