packages feed

inflections 0.1.0.9 → 0.1.0.10

raw patch · 10 files changed

+22/−5 lines, 10 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

Text/Inflections/Camelize.hs view
@@ -4,6 +4,8 @@  import Data.Char (toUpper, toLower) +import Prelude (String, Bool(..), concatMap, (.), zip, ($), repeat)+ -- |Turns a an input Word List in into CamelCase. Returns the CamelCase String. camelize   :: [Word] -- ^ Input Words to separate with underscores
Text/Inflections/Dasherize.hs view
@@ -4,6 +4,8 @@  import Data.List (intercalate) +import Prelude (String, (.), map)+ -- | Replaces underscores in a snake_cased string with dashes (hyphens). dasherize   :: [Word] -- ^ Input Words to separate with dashes
Text/Inflections/Humanize.hs view
@@ -2,8 +2,9 @@  import Text.Inflections.Parse.Types (Word(..)) -import Data.List (intercalate) import Data.Char (toUpper)++import Prelude (String, Bool(..), (.), map, zip, ($), unwords, repeat)  -- |Capitalizes the first word and turns underscores into spaces. Like titleize, -- this is meant for creating pretty output.
Text/Inflections/Parse/Acronym.hs view
@@ -10,5 +10,7 @@  import Control.Applicative ((<$>)) +import Prelude (Char, String, (.), map)+ acronym :: P.Stream s m Char => [String] -> P.ParsecT s u m Word acronym as = Acronym <$> P.choice (map (Prim.try . C.string) as)
Text/Inflections/Parse/CamelCase.hs view
@@ -8,6 +8,8 @@ import Text.Inflections.Parse.Types (Word(..)) import Text.Inflections.Parse.Acronym (acronym) +import Prelude (Char, String, Either, return, ($))+ parseCamelCase :: [String] -> String -> Either ParseError [Word] parseCamelCase acronyms = parse (parser acronyms) "(unknown)" 
Text/Inflections/Parse/SnakeCase.hs view
@@ -9,6 +9,8 @@ import Text.Inflections.Parse.Types (Word(..)) import Text.Inflections.Parse.Acronym (acronym) +import Prelude (Char, String, Either, return)+ parseSnakeCase :: [String] -> String -> Either ParseError [Word] parseSnakeCase acronyms = parse (parser acronyms) "(unknown)" 
Text/Inflections/Parse/Types.hs view
@@ -1,5 +1,7 @@ module Text.Inflections.Parse.Types ( Word(..), mapWord ) where +import Prelude (String, Show, Eq, ($))+ -- | A 'String' that should be kept whole through applied inflections data Word 
Text/Inflections/Titleize.hs view
@@ -2,8 +2,9 @@  import Text.Inflections.Parse.Types (Word(..)) -import Data.List (intercalate) import Data.Char (toUpper)++import Prelude (String, unwords, map, ($))  -- | Capitalizes all the Words in the input 'Data.List'. titleize
Text/Inflections/Underscore.hs view
@@ -5,6 +5,8 @@ import Data.Char (toLower) import Data.List (intercalate) +import Prelude (String, (.), map)+ -- |Turns a CamelCase string into an underscore_separated String. underscore   :: [Word] -- ^ Input Words to separate with underscores
inflections.cabal view
@@ -1,5 +1,5 @@ name:                inflections-version:             0.1.0.9+version:             0.1.0.10 synopsis:            Inflections library for Haskell description:   Inflections provides methods for singularization, pluralization,@@ -41,7 +41,7 @@                        , Text.Inflections.Parse.CamelCase    ghc-options:         -Wall-  build-depends:       base >=4.5 && <4.8, parsec, containers+  build-depends:       base >=4.2 && <4.9, parsec, containers   default-language:    Haskell2010  test-suite test@@ -50,7 +50,7 @@   main-is: Suite.hs   build-depends:       inflections-      , base >=4.5 && <4.8+      , base >=4.2 && <4.9       , test-framework       , HUnit       , QuickCheck@@ -58,4 +58,5 @@       , test-framework-quickcheck2       , parsec       , containers+  ghc-options:         -Wall   default-language:    Haskell2010