packages feed

imagesize-conduit 0.5.0.2 → 1.0.0

raw patch · 2 files changed

+5/−5 lines, 2 filesdep ~basedep ~conduit

Dependency ranges changed: base, conduit

Files

Data/Conduit/ImageSize.hs view
@@ -22,14 +22,14 @@  -- | Specialized version of 'sinkImageInfo' that returns only the -- image size.-sinkImageSize :: Monad m => GLSink S.ByteString m (Maybe Size)+sinkImageSize :: Monad m => Consumer S.ByteString m (Maybe Size) sinkImageSize = fmap (fmap fst) sinkImageInfo  -- | Find out the size of an image.  Also returns the file format -- that parsed correctly.  Note that this function does not -- verify that the file is indeed in the format that it returns, -- since it looks only at a small part of the header.-sinkImageInfo :: Monad m => GLSink S.ByteString m (Maybe (Size, FileFormat))+sinkImageInfo :: Monad m => Consumer S.ByteString m (Maybe (Size, FileFormat)) sinkImageInfo =     start id   where@@ -92,7 +92,7 @@ getInt :: (Monad m, Integral i)        => Int        -> i-       -> Pipe S.ByteString S.ByteString o u m (Maybe i)+       -> Consumer S.ByteString m (Maybe i) getInt 0 i = return $ Just i getInt len i = do     mx <- CB.head
imagesize-conduit.cabal view
@@ -1,5 +1,5 @@ Name:                imagesize-conduit-Version:             0.5.0.2+Version:             1.0.0 Synopsis:            Determine the size of some common image formats. Description:         Currently supports PNG, GIF, and JPEG. This package provides a Sink that will consume the minimum number of bytes necessary to determine the image dimensions. License:             BSD3@@ -18,7 +18,7 @@ Library   Exposed-modules:     Data.Conduit.ImageSize   Build-depends:       base                     >= 4            && < 5-                     , conduit                  >= 0.5          && < 0.6+                     , conduit                  >= 1.0          && < 1.1                      , bytestring               >= 0.9   ghc-options:     -Wall