packages feed

inflections 0.4.0.0 → 0.4.0.1

raw patch · 4 files changed

+16/−5 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

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 (ParseError Char Void) [SomeWord]
+ Text.Inflections: parseCamelCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseError Char Void) [SomeWord]
- Text.Inflections: parseSnakeCase :: (Foldable f, Functor f) => f (Word Acronym) -> Text -> Either (ParseError Char Void) [SomeWord]
+ Text.Inflections: parseSnakeCase :: (Foldable f, Functor f) => f (Word 'Acronym) -> Text -> Either (ParseError Char Void) [SomeWord]

Files

CHANGELOG.md view
@@ -1,3 +1,6 @@+## Inflections 0.4.0.1+* Support `megaparsec` >= 6.4.0+ ## Inflections 0.4.0.0  * Update megaparsec to version 6.
Text/Inflections/Parse/CamelCase.hs view
@@ -17,11 +17,15 @@   ( parseCamelCase ) where -import Control.Applicative+# if MIN_VERSION_base(4,8,0)+import Control.Applicative (empty, many, (<|>))+#else+import Control.Applicative (empty, many, (<|>), (<$>), (<*))+#endif import Data.Text (Text) import Data.Void (Void) import Text.Inflections.Types-import Text.Megaparsec+import Text.Megaparsec (Parsec, ParseError, choice, eof, parse) import Text.Megaparsec.Char import qualified Data.Text as T 
Text/Inflections/Parse/SnakeCase.hs view
@@ -16,11 +16,15 @@   ( parseSnakeCase ) where -import Control.Applicative+# if MIN_VERSION_base(4,8,0)+import Control.Applicative (empty, some)+#else+import Control.Applicative (empty, some, (<$>), (<*))+#endif import Data.Text (Text) import Data.Void (Void) import Text.Inflections.Types-import Text.Megaparsec+import Text.Megaparsec (Parsec, ParseError, eof, sepBy, parse) import Text.Megaparsec.Char import qualified Data.Text as T 
inflections.cabal view
@@ -1,5 +1,5 @@ name:                inflections-version:             0.4.0.0+version:             0.4.0.1 synopsis:            Inflections library for Haskell description:   Inflections provides methods for singularization, pluralization,