Skip to content

Commit

Permalink
Bump to 1.3.2 and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Jul 18, 2022
1 parent 2647798 commit 0dc80f5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/Text/Regex/TDFA.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions lib/Text/Regex/TDFA/Pattern.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions regex-tdfa.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0dc80f5

Please sign in to comment.