Skip to content

Bump cabal-version to 2.0 for autogen-modules #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Unreleased

- Bump `cabal-version` to 2.0 to support field `autogen-modules`.

### 1.3.2.4

_2025-05-09 Andreas Abel_
Expand Down
11 changes: 6 additions & 5 deletions regex-tdfa.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 1.24
cabal-version: 2.0
name: regex-tdfa
version: 1.3.2.4

Expand Down Expand Up @@ -92,12 +92,14 @@ library
Text.Regex.TDFA.Text
Text.Regex.TDFA.Text.Lazy

autogen-modules: Paths_regex_tdfa
other-modules: Paths_regex_tdfa

build-depends: array >= 0.5 && < 0.6
, base >= 4.9 && < 5
, bytestring >= 0.10 && < 0.13
, containers >= 0.5 && < 1
-- containers >= 0.5.11.0 (GHC 8.4) will allow to drop some #if
, mtl >= 2.1.3 && < 2.4
, parsec == 3.1.*
, regex-base == 0.94.*
Expand Down Expand Up @@ -163,10 +165,9 @@ test-suite regex-tdfa-unittest
Rank2Types
other-extensions: GeneralizedNewtypeDeriving

ghc-options: -Wall -funbox-strict-fields

if impl(ghc >= 8.0)
ghc-options: -Wcompat
ghc-options: -funbox-strict-fields
-Wall
-Wcompat

if flag(force-O2)
ghc-options: -O2
Expand Down