inflections 0.4.0.6 → 0.4.0.7
raw patch · 5 files changed
+42/−33 lines, 5 filesdep ~basedep ~textPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, text
API changes (from Hackage documentation)
- Text.Inflections: mkAcronym :: MonadThrow m => Text -> m (Word 'Acronym)
+ Text.Inflections: mkAcronym :: MonadThrow m => Text -> m (Word 'Acronym)
- Text.Inflections: mkWord :: MonadThrow m => Text -> m (Word 'Normal)
+ Text.Inflections: mkWord :: MonadThrow m => Text -> m (Word 'Normal)
- Text.Inflections: parseCamelCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseErrorBundle Text Void) [SomeWord]
+ Text.Inflections: parseCamelCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseErrorBundle Text Void) [SomeWord]
- Text.Inflections: parseSnakeCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseErrorBundle Text Void) [SomeWord]
+ Text.Inflections: parseSnakeCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseErrorBundle Text Void) [SomeWord]
Files
- CHANGELOG.md +3/−0
- LICENSE +17/−18
- README.md +12/−9
- Text/Inflections/Ordinal.hs +3/−0
- inflections.cabal +7/−6
CHANGELOG.md view
@@ -1,3 +1,6 @@+## Inflections 0.4.0.7+* Bump bounds for `text` in order to support ghc-9.6.1+ ## Inflections 0.4.0.6 * Support `megaparsec` == 9.0
LICENSE view
@@ -1,22 +1,21 @@-Copyright (c) 2014-2016 Justin Leitgeb- MIT License -Permission is hereby granted, free of charge, to any person obtaining-a copy of this software and associated documentation files (the-"Software"), to deal in the Software without restriction, including-without limitation the rights to use, copy, modify, merge, publish,-distribute, sublicense, and/or sell copies of the Software, and to-permit persons to whom the Software is furnished to do so, subject to-the following conditions:+Copyright (c) 2022 Stack Builders Inc. -The above copyright notice and this permission notice shall be-included in all copies or substantial portions of the Software.+Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
README.md view
@@ -4,7 +4,7 @@ [](http://hackage.haskell.org/package/inflections) [](http://stackage.org/nightly/package/inflections) [](http://stackage.org/lts/package/inflections)-[](https://travis-ci.org/stackbuilders/inflections-hs)+[](https://github.com/stackbuilders/inflections-hs/actions/workflows/build.yml) This library is a partial port of the [String Inflector](http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html)@@ -49,11 +49,10 @@ the `transliterate` function, you should instead call the `transliterateCustom` function which accepts a String for replacements and a Map for substitution. -## TODO+## Future work -I'd like this library to implement other functions found in the Rails-inflections library. If you need one of those functions, please submit a pull-request!+Ideally, we want to implement other functions found in the Rails+inflections library. If you need one of those functions, please submit a pull request! ## Further documentation @@ -64,10 +63,14 @@ Justin Leitgeb <justin@stackbuilders.com> -## Contributing+## License -You may submit pull requests to this repository on GitHub. Tests are appreciated with your contribution.+MIT, see [the LICENSE file](LICENSE). -## License+## Contributing -MIT - see [the LICENSE file](LICENSE).+Do you want to contribute to this project? Please take a look at our [contributing guideline](/docs/CONTRIBUTING.md) to know how you can help us build it.++---+<img src="https://cdn.stackbuilders.com/media/images/Sb-supports.original.png" alt="Stack Builders" width="50%"></img>+[Check out our libraries](https://github.com/stackbuilders/) | [Join our team](https://www.stackbuilders.com/join-us/)
Text/Inflections/Ordinal.hs view
@@ -9,6 +9,7 @@ -- -- Conversion to spelled ordinal numbers. +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module Text.Inflections.Ordinal@@ -16,7 +17,9 @@ , ordinal ) where +#if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>))+#endif import Data.Text (Text) import qualified Data.Text as T
inflections.cabal view
@@ -1,5 +1,6 @@+cabal-version: 2.0 name: inflections-version: 0.4.0.6+version: 0.4.0.7 synopsis: Inflections library for Haskell description: Inflections provides methods for singularization, pluralization,@@ -14,7 +15,6 @@ copyright: 2014–2016 Justin Leitgeb category: Text build-type: Simple-cabal-version: >=1.10 extra-source-files: CHANGELOG.md , README.md @@ -47,10 +47,10 @@ ghc-options: -Wall -Werror else ghc-options: -O2 -Wall- build-depends: base >= 4.6 && < 5.0+ build-depends: base >= 4.11 && < 5.0 , exceptions >= 0.6 && < 0.11 , megaparsec >= 7.0.1 && < 10.0- , text >= 0.2 && < 1.3+ , text >= 0.2 && < 2.1 , unordered-containers >= 0.2.7 && < 0.3 if !impl(ghc >= 7.10) build-depends: void == 0.7.*@@ -61,14 +61,15 @@ type: exitcode-stdio-1.0 hs-source-dirs: test main-is: Spec.hs+ build-tool-depends: hspec-discover:hspec-discover build-depends: inflections , QuickCheck >= 2.7.6 && < 3.0- , base >= 4.6 && < 5.0+ , base >= 4.11 && < 5.0 , containers >= 0.5 && < 0.7 , hspec >= 2.0 && < 3.0 , hspec-megaparsec >= 2.0 && < 3.0 , megaparsec- , text >= 0.2 && < 1.3+ , text >= 0.2 && < 2.1 if !impl(ghc >= 7.10) build-depends: void == 0.7.*