Skip to content
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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
For the package version policy (PVP), see http://pvp.haskell.org/faq .
### 1.3.2.3

_2025-03-02 Andreas Abel_

- Drop support for GHC 7
- Allow `containers < 1`
- Tested with GHC 8.0 - 9.12.1

### 1.3.2.2

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[![Hackage version](https://img.shields.io/hackage/v/regex-tdfa.svg?label=Hackage&color=informational)](http://hackage.haskell.org/package/regex-tdfa)
[![Stackage Nightly](http://stackage.org/package/regex-tdfa/badge/nightly)](http://stackage.org/nightly/package/regex-tdfa)
[![Stackage LTS](http://stackage.org/package/regex-tdfa/badge/lts)](http://stackage.org/lts/package/regex-tdfa)
[![Haskell-CI](https://github.com/haskell-hvr/regex-tdfa/actions/workflows/haskell-ci.yml/badge.svg?branch=master&event=push)](https://github.com/haskell-hvr/regex-tdfa/actions/workflows/haskell-ci.yml)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
# regex-tdfa

This is [`regex-tdfa`](http://hackage.haskell.org/package/regex-tdfa) which is a pure Haskell regular expression library (for POSIX extended regular expressions) originally written by Christopher Kuklewicz.
Expand Down
46 changes: 18 additions & 28 deletions regex-tdfa.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cabal-version: 1.12
cabal-version: 1.24
name: regex-tdfa
version: 1.3.2.2
x-revision: 3
version: 1.3.2.3

build-Type: Simple
license: BSD3
Expand All @@ -20,9 +19,11 @@ description:
Please consult the "Text.Regex.TDFA" module for API documentation including a tutorial with usage examples;
see also <https://wiki.haskell.org/Regular_expressions> for general information about regular expression support in Haskell.

extra-source-files:
extra-doc-files:
CHANGELOG.md
README.md

extra-source-files:
test/cases/*.txt

tested-with:
Expand All @@ -47,7 +48,7 @@ source-repository head
source-repository this
type: git
location: https://github.com/haskell-hvr/regex-tdfa.git
tag: v1.3.2.2-r3
tag: v1.3.2.3

flag force-O2
default: False
Expand Down Expand Up @@ -93,21 +94,10 @@ library

other-modules: Paths_regex_tdfa

-- Support Semigroup instances uniformly
--
-- See also
-- https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid#RecommendedVariant
--
-- NB: This is the same logic `parsec.cabal` uses, so this doesn't
-- add any new dependency that isn't already incurred by
-- `regex-tdfa`'s transitive deps
if !impl(ghc >= 8.0)
build-depends: fail == 4.9.*
, semigroups == 0.18.* || == 0.19.*
build-depends: array >= 0.4 && < 0.6
, base >= 4.5 && < 5
, bytestring >= 0.9.2 && < 0.13
, containers >= 0.4.2 && < 0.8
build-depends: array >= 0.5 && < 0.6
, base >= 4.9 && < 5
, bytestring >= 0.10 && < 0.13
, containers >= 0.5 && < 1
, mtl >= 2.1.3 && < 2.4
, parsec == 3.1.*
, regex-base == 0.94.*
Expand All @@ -131,13 +121,16 @@ library
UnliftedFFITypes
other-extensions: CPP

ghc-options: -Wall -funbox-strict-fields -fspec-constr-count=10 -fno-warn-orphans

if impl(ghc >= 8.0)
ghc-options: -Wcompat
ghc-options:
-funbox-strict-fields
-fspec-constr-count=10
-Wall
-Wno-orphans
-Wcompat

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


test-suite regex-tdfa-unittest
Expand All @@ -150,9 +143,6 @@ test-suite regex-tdfa-unittest
build-depends: regex-tdfa

-- dependencies whose version constraints are inherited via intra-package 'regex-tdfa' dependency
if !impl(ghc >= 8.0)
build-depends: fail
, semigroups
build-depends: array
, base
, bytestring
Expand Down