packages feed

case-insensitive 0.2 → 0.2.0.1

raw patch · 2 files changed

+9/−14 lines, 2 filesdep −base-unicode-symbolsPVP ok

version bump matches the API change (PVP)

Dependencies removed: base-unicode-symbols

API changes (from Hackage documentation)

Files

Data/CaseInsensitive.hs view
@@ -37,19 +37,15 @@ import Data.Eq       ( Eq((==)) ) import Data.Ord      ( Ord(compare) ) import Data.Function ( on )-import Data.Functor  ( fmap ) import Data.Monoid   ( Monoid(mempty, mappend) ) import Data.String   ( IsString(fromString) ) import Data.Typeable ( Typeable ) import Data.Char     ( Char )-import Prelude       ( String )+import Prelude       ( String, (.), fmap ) import Text.Read     ( Read(readPrec) ) import Text.Show     ( Show(showsPrec), ShowS ) import qualified Data.List as L ( map ) --- from base-unicode-symbols:-import Data.Function.Unicode ( (∘) )- -- from bytestring: import qualified Data.ByteString             as B    ( ByteString ) import qualified Data.ByteString.Lazy        as BL   ( ByteString )@@ -90,10 +86,10 @@  -- | Transform the original string-like value but keep it case insensitive. map ∷ FoldCase s2 ⇒ (s1 → s2) → (CI s1 → CI s2)-map f = mk ∘ f ∘ original+map f = mk . f . original  instance (IsString s, FoldCase s) ⇒ IsString (CI s) where-    fromString = mk ∘ fromString+    fromString = mk . fromString  instance Monoid s ⇒ Monoid (CI s) where     mempty = CI mempty mempty@@ -109,7 +105,7 @@     readPrec = fmap mk readPrec  instance Show s ⇒ Show (CI s) where-    showsPrec prec = showsPrec prec ∘ original+    showsPrec prec = showsPrec prec . original   --------------------------------------------------------------------------------@@ -134,7 +130,7 @@ instance FoldCase BL.ByteString where foldCase = BLC8.map toLower instance FoldCase T.Text        where foldCase = T.toCaseFold instance FoldCase TL.Text       where foldCase = TL.toCaseFold-instance FoldCase ShowS         where foldCase = (foldCase ∘)+instance FoldCase ShowS         where foldCase = (foldCase .) instance FoldCase (CI s)        where foldCase (CI _ l) = CI l l  
case-insensitive.cabal view
@@ -1,5 +1,5 @@ name:          case-insensitive-version:       0.2+version:       0.2.0.1 cabal-version: >=1.6 build-type:    Simple license:       BSD3@@ -21,8 +21,7 @@  Library   GHC-Options: -Wall-  build-depends: base                 >= 4     && < 4.4-               , base-unicode-symbols >= 0.1.1 && < 0.3-               , bytestring           >= 0.9   && < 0.10-               , text                 >= 0.3   && < 0.12+  build-depends: base       >= 4   && < 4.4+               , bytestring >= 0.9 && < 0.10+               , text       >= 0.3 && < 0.12   exposed-modules: Data.CaseInsensitive