about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/patches/regex-compat-tdfa-ghc-9.0.patch
blob: db2ca02b9d4939d17b0c44a10f3601da875efcc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
+-}