diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8549ec049a67..951f81604809 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2221,8 +2221,15 @@ self: super: { Cabal = self.Cabal_3_6_3_0; })); - # Break out of "Cabal < 3.2" constraint. - stylish-haskell = doJailbreak super.stylish-haskell; + # 2022-03-21: Newest stylish-haskell needs ghc-lib-parser-9_2 + stylish-haskell = (super.stylish-haskell.override { + ghc-lib-parser = super.ghc-lib-parser_9_2_2_20220307; + ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_0_3; + }); + + ghc-lib-parser-ex_9_2_0_3 = super.ghc-lib-parser-ex_9_2_0_3.override { + ghc-lib-parser = super.ghc-lib-parser_9_2_2_20220307; + }; # To strict bound on hspec # https://github.com/dagit/zenc/issues/5