vector-strategies 0.2 → 0.3
raw patch · 2 files changed
+5/−4 lines, 2 files
Files
- Data/Vector/Strategies.hs +4/−3
- vector-strategies.cabal +1/−1
Data/Vector/Strategies.hs view
@@ -7,7 +7,8 @@ import Control.DeepSeq (NFData(..)) import Control.Parallel.Strategies import Control.Monad-import qualified Data.Vector as V+import qualified Data.Vector.Generic as V+import qualified Data.Vector as VB -- |Evaluate the elements of a boxed vector in parallel. --@@ -22,8 +23,8 @@ -- @ -- -- 'parVector' can not provide any benefits (read: no parallelism) for unboxed vectors!-parVector :: NFData a => Int -> Strategy (V.Vector a)+parVector :: V.Vector v a => NFData a => Int -> Strategy (v a) parVector n = liftM V.fromList . parListChunk n rdeepseq . V.toList -instance NFData a => NFData (V.Vector a) where+instance NFData a => NFData (VB.Vector a) where rnf = rnf . V.toList
vector-strategies.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version: 0.2+Version: 0.3 -- A short (one-line) description of the package. Synopsis: A parallel evaluation strategy for boxed vectors