monoids 0.2.0.3 → 0.2.0.4
raw patch · 4 files changed
+17/−16 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Generator.hs +3/−4
- Data/Monoid/Multiplicative.hs +0/−1
- Data/Monoid/Reducer.hs +0/−1
- monoids.cabal +14/−10
Data/Generator.hs view
@@ -47,7 +47,6 @@ import qualified Data.ByteString.Lazy.Char8 as Lazy8 (toChunks) import Data.Word (Word8) import Data.FingerTree (Measured, FingerTree)-import qualified Data.Sequence as Seq import Data.Sequence (Seq) import qualified Data.Set as Set import Data.Set (Set)@@ -57,7 +56,7 @@ import Data.IntMap (IntMap) import qualified Data.Map as Map import Data.Map (Map)-import Control.Parallel.Strategies+import Control.Parallel.Strategies (rseq, parMap) import Data.Foldable (fold,foldMap) import Data.Monoid.Reducer @@ -78,7 +77,7 @@ instance Generator Lazy.ByteString where type Elem Lazy.ByteString = Word8- mapReduce f = fold . parMap rwhnf (mapReduce f) . Lazy.toChunks+ mapReduce f = fold . parMap rseq (mapReduce f) . Lazy.toChunks instance Generator Text where type Elem Text = Char@@ -156,7 +155,7 @@ instance Generator (Char8 Lazy.ByteString) where type Elem (Char8 Lazy.ByteString) = Char- mapReduce f = fold . parMap rwhnf (mapReduce f . Char8) . Lazy8.toChunks . getChar8+ mapReduce f = fold . parMap rseq (mapReduce f . Char8) . Lazy8.toChunks . getChar8 -- | Apply a 'Reducer' directly to the elements of a 'Generator' reduce :: (Generator c, Elem c `Reducer` m) => c -> m
Data/Monoid/Multiplicative.hs view
@@ -46,7 +46,6 @@ import Data.Ratio import Data.FingerTree-import qualified Data.Sequence as Seq import Data.Sequence (Seq) class Multiplicative m where
Data/Monoid/Reducer.hs view
@@ -25,7 +25,6 @@ ) where import Control.Applicative-import Control.Monad import Data.Monoid import Data.Foldable
monoids.cabal view
@@ -1,17 +1,21 @@-name: monoids-version: 0.2.0.3-license: BSD3+name: monoids+version: 0.2.0.4+license: BSD3 license-file: LICENSE-author: Edward A. Kmett-maintainer: Edward A. Kmett <ekmett@gmail.com>-stability: experimental-homepage: http://comonad.com/reader-category: Data, Math, Numerical-synopsis: Monoids, specialized containers and a general map/reduce framework+author: Edward A. Kmett+maintainer: Edward A. Kmett <ekmett@gmail.com>+stability: experimental+homepage: http://github.com/ekmett/monoids+category: Data, Math, Numerical+synopsis: Monoids, specialized containers and a general map/reduce framework description: Monoids, specialized containers and a general map/reduce framework copyright: (c) 2009 Edward A. Kmett build-type: Simple-cabal-version: >=1.2.3+cabal-version: >=1.6++source-repository head+ type: git+ location: git://github.com/ekmett/monoids.git flag optimize description: Enable optimizations