packages feed

zlib-lens 0.1 → 0.1.1

raw patch · 2 files changed

+10/−7 lines, 2 filesdep +profunctorsdep −lensdep ~basedep ~bytestringnew-uploader

Dependencies added: profunctors

Dependencies removed: lens

Dependency ranges changed: base, bytestring

Files

src/Codec/Compression/Zlib/Lens.hs view
@@ -60,10 +60,13 @@  import Control.Applicative import Codec.Compression.Zlib.Internal-import Control.Lens import qualified Data.ByteString      as S (ByteString) import qualified Data.ByteString.Lazy as L (ByteString)+import Data.Profunctor (Profunctor(dimap)) +type Lens' s a = Functor f => (a -> f a) -> s -> f s+type Iso' s a = (Functor f, Profunctor p) => p a (f a) -> p s (f s)+ -- | -- The 'zlib' compression format. zlib :: Format@@ -161,7 +164,7 @@ -- | -- Compresses a 'L.ByteString' using the given compression format and the given advanced parameters. compressed' :: Format -> Params -> Iso' L.ByteString L.ByteString-compressed' fmt (Params c d) = iso (compress fmt c) (decompress fmt d)+compressed' fmt (Params c d) = dimap (compress fmt c) (fmap (decompress fmt d)) {-# INLINE compressed' #-}  -- |
zlib-lens.cabal view
@@ -1,5 +1,5 @@ name:                zlib-lens-version:             0.1+version:             0.1.1 synopsis:            Lenses for zlib -- description: homepage:            lens.github.io@@ -16,10 +16,10 @@ library   exposed-modules:     Codec.Compression.Zlib.Lens   other-extensions:    Rank2Types-  build-depends:       base >=4.7 && <4.8,-                       bytestring >=0.10 && <0.11,-                       lens >=4.5 && < 5,-                       zlib >=0.5.4 && <0.6+  build-depends:       base >=4.0 && <5,+                       bytestring >=0.9.1.10 && <0.11,+                       zlib >=0.5.4 && <0.6,+                       profunctors >=3.1.1 && <4.4    hs-source-dirs:      src   default-language:    Haskell2010