about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/patches
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-02-20 13:46:45 +0100
committersternenseemann <sternenseemann@systemli.org>2022-02-20 13:46:45 +0100
commitd9cbb54b1f412ba8f9304c40abc9c68481c51301 (patch)
treec353dc57e33875a54d08cc6b18ab2575db7e4fd3 /pkgs/development/haskell-modules/patches
parent97c9a698d1fa8015d23ba341edfb6783d686395f (diff)
haskellPackages.regex-compat-tdfa: fix build with GHC >= 9.0
Seems that GHC 9 got a bit stricter in terms of bang pattern syntax.
Diffstat (limited to 'pkgs/development/haskell-modules/patches')
-rw-r--r--pkgs/development/haskell-modules/patches/regex-compat-tdfa-ghc-9.0.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/patches/regex-compat-tdfa-ghc-9.0.patch b/pkgs/development/haskell-modules/patches/regex-compat-tdfa-ghc-9.0.patch
new file mode 100644
index 0000000000000..db2ca02b9d493
--- /dev/null
+++ b/pkgs/development/haskell-modules/patches/regex-compat-tdfa-ghc-9.0.patch
@@ -0,0 +1,19 @@
+diff -rN -u old-regex-compat-tdfa/Text/Regex.hs new-regex-compat-tdfa/Text/Regex.hs
+--- old-regex-compat-tdfa/Text/Regex.hs	2022-02-20 13:42:36.828752458 +0100
++++ new-regex-compat-tdfa/Text/Regex.hs	2022-02-20 13:42:36.828752458 +0100
+@@ -139,7 +139,7 @@
+ splitRegex :: Regex -> String -> [String]
+ splitRegex _ [] = []
+ splitRegex delim strIn = 
+-  let matches = map (!0) (matchAll delim strIn)
++  let matches = map (! 0) (matchAll delim strIn)
+       go _i str [] = str : []
+       go i str ((off,len):rest) =
+         let i' = off+len
+@@ -194,4 +194,4 @@
+                     then [firstline,""]
+                     else firstline : loop remainder
+ 
+--}
+\ No newline at end of file
++-}