diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index 8b4399af2076..c2fc6f962d9c 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -170,4 +170,9 @@ self: super: { # No instance for (Show B.Builder) arising from a use of ‘print’ http-types = dontCheck super.http-types; + + # Needs compat library for GHC < 9.6 + indexed-traversable = addBuildDepends [ + self.foldable1-classes-compat + ] super.indexed-traversable; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 69eea055315a..6932dbc4843a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -135,4 +135,9 @@ self: super: { # No instance for (Show B.Builder) arising from a use of ‘print’ http-types = dontCheck super.http-types; + + # Needs compat library for GHC < 9.6 + indexed-traversable = addBuildDepends [ + self.foldable1-classes-compat + ] super.indexed-traversable; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix index 5ffca6a50bc6..11a9d8a606dc 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix @@ -127,4 +127,9 @@ self: super: { # Requires GHC < 9.4 ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen); + + # Needs compat library for GHC < 9.6 + indexed-traversable = addBuildDepends [ + self.foldable1-classes-compat + ] super.indexed-traversable; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index d8a79b01ab3d..3e82db679126 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -126,4 +126,9 @@ in { hlint stylish-haskell ; + + # Needs compat library for GHC < 9.6 + indexed-traversable = addBuildDepends [ + self.foldable1-classes-compat + ] super.indexed-traversable; }