diff --git a/CHANGELOG.md b/CHANGELOG.md index ca3818d..20a0eab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ For the package version policy (PVP), see http://pvp.haskell.org/faq . +### 1.3.2 + +_2022-07-18, Andreas Abel_ + +- Export `decodePatternSet` and `decodeCharacterClass` from `Text.Regex.TDFA.Pattern` + ([#16](https://github.com/haskell-hvr/regex-tdfa/issues/16)) +- Extend and correct docs for `Pattern` module +- Tested with GHC 7.4 - 9.4 + ### 1.3.1.5 _2022-07-18, Andreas Abel_ diff --git a/README.md b/README.md index 5533e0f..7375909 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The name "tdfa" stands for Tagged-DFA. [Declare a dependency](https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-build-depends) on the `regex-tdfa` library in your `.cabal` file: ``` -build-depends: regex-tdfa ^>= 1.3.1 +build-depends: regex-tdfa ^>= 1.3.2 ``` In Haskell modules where you need to use regexes `import` the respective `regex-tdfa` module: diff --git a/lib/Text/Regex/TDFA.hs b/lib/Text/Regex/TDFA.hs index 9541b2b..ab89302 100644 --- a/lib/Text/Regex/TDFA.hs +++ b/lib/Text/Regex/TDFA.hs @@ -21,7 +21,7 @@ OS's bugs. Declare a dependency on the @regex-tdfa@ library in your @.cabal@ file: -> build-depends: regex-tdfa ^>= 1.3.1.1 +> build-depends: regex-tdfa ^>= 1.3.2 In Haskell modules where you want to use regexes simply @import@ /this/ module: diff --git a/lib/Text/Regex/TDFA/Pattern.hs b/lib/Text/Regex/TDFA/Pattern.hs index e75b2b7..066f1c7 100644 --- a/lib/Text/Regex/TDFA/Pattern.hs +++ b/lib/Text/Regex/TDFA/Pattern.hs @@ -180,6 +180,8 @@ instance Show PatternSetEquivalenceClass where -- | @decodePatternSet@ cannot handle collating element and treats -- equivalence classes as just their definition and nothing more. +-- +-- @since 1.3.2 decodePatternSet :: PatternSet -> Set Char decodePatternSet (PatternSet msc mscc _ msec) = let baseMSC = maybe Set.empty id msc @@ -190,6 +192,8 @@ decodePatternSet (PatternSet msc mscc _ msec) = -- | This returns the strictly ascending list of characters -- represented by @[: :]@ POSIX character classes. -- Unrecognized class names return an empty string. +-- +-- @since 1.3.2 decodeCharacterClass :: PatternSetCharacterClass -> String decodeCharacterClass (PatternSetCharacterClass s) = case s of diff --git a/regex-tdfa.cabal b/regex-tdfa.cabal index b3b8089..1ee967d 100644 --- a/regex-tdfa.cabal +++ b/regex-tdfa.cabal @@ -1,6 +1,6 @@ cabal-version: 1.12 name: regex-tdfa -version: 1.3.1.5 +version: 1.3.2 build-Type: Simple license: BSD3 @@ -46,7 +46,7 @@ source-repository head source-repository this type: git location: https://github.com/haskell-hvr/regex-tdfa.git - tag: v1.3.1.5 + tag: v1.3.2 flag force-O2 default: False