haskell-hvr/regex-base

regex-base-0.94.0.0 broken by ghc-9.0.1 alpha release

peti opened this issue ยท 9 comments

peti commented

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)
    |                                           ^^
hvr commented

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.

Any chance we can get one of #2, #3, or #6 merged? That change seems completely harmless, and many packages transitively depend on this one and so will fail to build on GHC 9.

@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

asr commented

Blocking agda/agda#4955.

I am working on this.