From eda8d2938155ab0734852a7dd31e35af7f4a7acd Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 3 Jul 2023 12:15:37 +0200 Subject: [PATCH] haskell.packages.ghc96.language-haskell-extract: patch TH code We have a similar patch for all GHCs >= 9.0. --- .../development/haskell-modules/configuration-ghc-9.6.x.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix index 7bc4dd716406..fc549721129a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix @@ -121,6 +121,12 @@ self: super: { # https://github.com/dreixel/syb/issues/40 syb = dontCheck super.syb; + # Support for template-haskell >= 2.16 + language-haskell-extract = appendPatch (pkgs.fetchpatch { + url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/language-haskell-extract-0.2.4.patch"; + sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv"; + }) (doJailbreak super.language-haskell-extract); + # 2023-04-03: plugins disabled for hls 1.10.0.0 based on # haskell-language-server =