mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
d9cbb54b1f
Seems that GHC 9 got a bit stricter in terms of bang pattern syntax.
20 lines
691 B
Diff
20 lines
691 B
Diff
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
|
|
+-}
|