packages feed

reducers 0.2 → 0.3

raw patch · 2 files changed

+13/−16 lines, 2 filesdep −paralleldep ~comonaddep ~containersdep ~keys

Dependencies removed: parallel

Dependency ranges changed: comonad, containers, keys, pointed, semigroupoids, semigroups

Files

Data/Generator.hs view
@@ -58,7 +58,7 @@ import Data.Map (Map) import Data.List.NonEmpty (NonEmpty) import qualified Data.List.NonEmpty as NonEmpty-import Control.Parallel.Strategies (rseq, parMap)+-- import Control.Parallel.Strategies (rseq, parMap) import Data.Foldable (fold,foldMap) import Data.Semigroup.Reducer @@ -80,7 +80,8 @@  instance Generator Lazy.ByteString where   type Elem Lazy.ByteString = Word8-  mapReduce f = fold . parMap rseq (mapReduce f) . Lazy.toChunks+  -- mapReduce f = fold . parMap rseq (mapReduce f) . Lazy.toChunks+  mapReduce f = fold . map (mapReduce f) . Lazy.toChunks  instance Generator Text where   type Elem Text = Char@@ -170,7 +171,7 @@  instance Generator (Char8 Lazy.ByteString) where   type Elem (Char8 Lazy.ByteString) = Char-  mapReduce f = fold . parMap rseq (mapReduce f . Char8) . Lazy8.toChunks . getChar8+  mapReduce f = fold . map (mapReduce f . Char8) . Lazy8.toChunks . getChar8  -- | Apply a 'Reducer' directly to the elements of a 'Generator' reduce :: (Generator c, Reducer (Elem c) m, Monoid m) => c -> m
reducers.cabal view
@@ -1,6 +1,6 @@ name:          reducers category:      Data, Math, Numerical, Semigroups-version:       0.2+version:       0.3 license:       BSD3 cabal-version: >= 1.6 license-file:  LICENSE@@ -17,28 +17,24 @@   type: git   location: git://github.com/ekmett/reducers.git -flag DeriveDataTypeable-  manual: False-  default: True- library   build-depends:     base                   >= 4        && < 5,     array                  >= 0.3      && < 0.5,     transformers           >= 0.2      && < 0.4,     bytestring             >= 0.9.1    && < 0.10,-    containers             >= 0.3      && < 0.5,+    containers             >= 0.3      && < 0.6,     fingertree             >= 0.0.1    && < 0.1,     hashable               >= 1.1.2.1  && < 1.2,     text                   >= 0.11.1.5 && < 0.12,-    parallel               >= 3.2      && < 3.3,     unordered-containers   >= 0.1.4    && < 0.3,-    semigroups             >= 0.8.2    && < 0.9,-    semigroupoids          >= 1.3      && < 1.4,-    comonad                >= 1.1.1.3  && < 1.2,-    pointed                >= 2.1      && < 2.2,-    keys                   >= 2.1.3    && < 2.2+    semigroups             >= 0.8.3.1  && < 0.9,+    semigroupoids          >= 1.3.1.2  && < 1.4,+    comonad                >= 1.1.1.5  && < 1.2,+    pointed                >= 2.1.0.1  && < 2.2,+    keys                   >= 2.1.3.1  && < 2.2 +--  parallel               >= 3.2      && < 3.3,   exposed-modules:     Data.Generator     Data.Generator.Combinators@@ -55,7 +51,7 @@     Data.Semigroup.MonadPlus     Data.Semigroup.Self -  if flag(DeriveDataTypeable)+  if impl(ghc)     extensions: DeriveDataTypeable     cpp-options: -DLANGUAGE_DeriveDataTypeable