Skip to content

Comments

ghc-lib-parser 9.14#1175

Merged
mrkkrp merged 1 commit intomasterfrom
amesgen/ghc-9.14
Feb 17, 2026
Merged

ghc-lib-parser 9.14#1175
mrkkrp merged 1 commit intomasterfrom
amesgen/ghc-9.14

Conversation

@amesgen
Copy link
Contributor

@amesgen amesgen commented Aug 20, 2025

Draft until GHC 9.14.1 gets released

  1. Update flake inputs and GHCs, bump .cabal version bounds

    Also drop GHC 9.8 (which allows us to upgrade to GHC2024 in a follow-up PR).

  2. Update to ghc-lib-parser-9.14. See the changelog entry for new syntactic features.

  3. Update to Cabal-syntax-3.16.

  4. Fix Strings containing \^\ escape sequence are misformatted #1165 (depends on an upstream GHC parser fix).

@github-actions
Copy link

github-actions bot commented Aug 20, 2025

@github-actions github-actions bot temporarily deployed to pull request August 20, 2025 19:22 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 21, 2025 18:07 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 13, 2025 19:34 Inactive
@mrkkrp mrkkrp modified the milestones: 0.7.4.0, 0.8.1.0 Nov 14, 2025
@mrkkrp mrkkrp marked this pull request as ready for review January 9, 2026 15:38
@github-actions github-actions bot temporarily deployed to pull request January 9, 2026 21:54 Inactive
@mrkkrp mrkkrp force-pushed the amesgen/ghc-9.14 branch 2 times, most recently from bb1c337 to 3314a86 Compare January 9, 2026 22:07
@mrkkrp mrkkrp marked this pull request as draft January 9, 2026 22:26
@github-actions github-actions bot temporarily deployed to pull request January 9, 2026 22:29 Inactive
@mrkkrp mrkkrp self-assigned this Jan 11, 2026
@cassandracomar
Copy link

what needs to happen for this PR to be ready for merge? is there anything I can help with?

@mrkkrp
Copy link
Member

mrkkrp commented Jan 23, 2026

Last time I looked GHC 9.14 wasn't available in haskell.nix. I could merge it without it, but I'd really like to test with GHC 9.14 before I make a release.

@georgefst georgefst mentioned this pull request Feb 6, 2026
@georgefst
Copy link

Last time I looked GHC 9.14 wasn't available in haskell.nix. I could merge it without it, but I'd really like to test with GHC 9.14 before I make a release.

It hasn't been merged, but it is almost ready: input-output-hk/haskell.nix#2434. I've been using that branch a bit for some other projects and, for what it's worth, it works here as long as we apply #1190:

$ git diff ':!flake.lock'
diff --git a/cabal.project b/cabal.project
index d21ee74..ad64f2c 100644
--- a/cabal.project
+++ b/cabal.project
@@ -6,3 +6,7 @@ tests: True
 multi-repl: True
 
 constraints: ormolu +dev
+
+allow-newer:
+    *:template-haskell,
+    *:base,
diff --git a/flake.nix b/flake.nix
index 1491c7f..b541d88 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,7 +1,7 @@
 {
   inputs = {
     haskellNix = {
-      url = "github:input-output-hk/haskell.nix";
+      url = "github:input-output-hk/haskell.nix/hkm/ghc914X";
       # prevent nix-direnv from fetching stackage
       inputs.stackage.url = "github:input-output-hk/empty-flake";
     };
@@ -23,7 +23,7 @@
         inherit (pkgs) lib haskell-nix;
         inherit (haskell-nix) haskellLib;
 
-        ghcVersions = [ "ghc9102" "ghc9122" ];
+        ghcVersions = [ "ghc9102" "ghc9122" "ghc9141" ];
         defaultGHCVersion = builtins.head ghcVersions;
         perGHC = lib.genAttrs ghcVersions (ghcVersion:
           let
@@ -136,13 +136,9 @@
           };
         };
         devShells = {
-          default = defaultGHC.dev.hsPkgs.shellFor {
+          default = perGHC.ghc9141.dev.hsPkgs.shellFor {
             tools = {
               cabal = "latest";
-              haskell-language-server = {
-                src = inputs.haskellNix.inputs."hls-2.11";
-                configureArgs = "--disable-benchmarks --disable-tests";
-              };
             };
             nativeBuildInputs = pre-commit-check.enabledPackages;
             withHoogle = false;
diff --git a/ormolu.cabal b/ormolu.cabal
index 55ad299..1b2ba3f 100644
--- a/ormolu.cabal
+++ b/ormolu.cabal
@@ -167,7 +167,6 @@ executable ormolu
 test-suite tests
   type: exitcode-stdio-1.0
   main-is: Spec.hs
-  build-tool-depends: hspec-discover:hspec-discover >=2 && <3
   hs-source-dirs: tests
   other-modules:
     Ormolu.CabalInfoSpec
$ nix develop --accept-flake-config 
warning: Git tree '/home/gthomas/code/ormolu' is dirty
$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 9.14.1
$ cabal run test:tests -- -f failed-examples

Finished in 2.2966 seconds
597 examples, 0 failures

@georgefst
Copy link

It hasn't been merged

It has now!

@github-actions github-actions bot temporarily deployed to pull request February 17, 2026 20:24 Inactive
@mrkkrp mrkkrp marked this pull request as ready for review February 17, 2026 20:31
@mrkkrp mrkkrp merged commit 2164be7 into master Feb 17, 2026
8 checks passed
@mrkkrp mrkkrp deleted the amesgen/ghc-9.14 branch February 17, 2026 20:46
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.

Strings containing \^\ escape sequence are misformatted

4 participants