packages feed

casing 0.1.1.0 → 0.1.2.0

raw patch · 2 files changed

+4/−3 lines, 2 filesdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

- Text.Casing: data Identifier a
+ Text.Casing: Identifier :: [a] -> Identifier a
+ Text.Casing: [unIdentifier] :: Identifier a -> [a]
+ Text.Casing: instance Data.Foldable.Foldable Text.Casing.Identifier
+ Text.Casing: instance Data.Traversable.Traversable Text.Casing.Identifier
+ Text.Casing: newtype Identifier a

Files

Text/Casing.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE DeriveTraversable #-} -- | Conversions between several common identifier casing conventions: -- -- - @PascalCase@ - no spacing between words, first letter in word is@@ -11,7 +12,7 @@ module Text.Casing ( -- * Types-Identifier+Identifier (..) -- * Parsing , fromHumps , fromKebab@@ -46,7 +47,7 @@  -- | An opaque type that represents a parsed identifier. newtype Identifier a = Identifier { unIdentifier :: [a] }-    deriving (Monad, Functor, Applicative, Show)+    deriving (Monad, Functor, Applicative, Show, Foldable, Traversable)  wordCase :: String -> String wordCase "" = ""
casing.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                casing-version:             0.1.1.0+version:             0.1.2.0 synopsis:            Convert between various source code casing conventions description:         Converts between camelCase, PascalCase, kebab-case, and                      three flavors of snake_case.