regex-base-0.94.0.0 broken by ghc-9.0.1 alpha release
peti opened this issue ยท 9 comments
The new white-space rules for prefix operators break the build:
src/Text/Regex/Base/Context.hs:303:29: error:
Bang pattern in expression context: !0
Did you mean to add a space after the '!'?
|
303 | match r s = maybe (-1,0) (!0) (matchOnce r s)
| ^^
src/Text/Regex/Base/Context.hs:304:43: error:
Bang pattern in expression context: !0
Did you mean to add a space after the '!'?
|
304 | matchM r s = maybe regexFailed (return.(!0)) (matchOnce r s)
| ^^
This patch fixes the issue: https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/patches/regex-base-0.94.0.0.patch
This is not a regression. This is a consequence of https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0229-whitespace-bang-patterns.rst
EDIT: it is a regression, but deliberate.
@galenhuntington GHC-9.0 is not released, and it is IMHO somewhat impolite to pressure maintainers to merge (and release) patches. Note, this issue was opened in late October, and GHC-9.0-rc1 was released just last week.
I'm sure Herbert will eventually get to this issue, until then, there is patch in https://gitlab.haskell.org/ghc/head.hackage
Blocking agda/agda#4955.
I am working on this.
Fixed by release of 0.94.0.1, see https://hackage.haskell.org/package/regex-base-0.94.0.1.