storablevector 0.2.2 → 0.2.3
raw patch · 2 files changed
+23/−8 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- Data/StorableVector/Lazy.hs +8/−1
- storablevector.cabal +15/−7
Data/StorableVector/Lazy.hs view
@@ -23,6 +23,7 @@ import Foreign.Storable (Storable) +import Data.Monoid (Monoid, mempty, mappend, mconcat, ) -- import Control.Arrow ((***)) import Control.Monad (liftM, liftM2, liftM3, liftM4, {- guard, -} ) @@ -36,7 +37,7 @@ import Prelude hiding- (length, (++), iterate, foldl, map, repeat, replicate, null,+ (length, (++), concat, iterate, foldl, map, repeat, replicate, null, zip, zipWith, zipWith3, drop, take, splitAt, takeWhile, dropWhile, reverse) import qualified Prelude as P@@ -57,6 +58,12 @@ {-# ONLINE chunks #-} newtype Vector a = SV {chunks :: [V.Vector a]}+++instance (Storable a) => Monoid (Vector a) where+ mempty = empty+ mappend = append+ mconcat = concat -- for a list of chunk sizes see "Data.StorableVector.LazySize".
storablevector.cabal view
@@ -1,5 +1,5 @@ Name: storablevector-Version: 0.2.2+Version: 0.2.3 Category: Data Synopsis: Fast, packed, strict storable arrays with a list interface like ByteString Description:@@ -16,17 +16,16 @@ We do not provide advanced fusion optimization, since especially for lazy vectors this would either be incorrect or not applicable.- For fusion see @storablevector-stream@ package.+ For fusion see @storablevector-streamfusion@ package. License: BSD3 License-file: LICENSE Author: Spencer Janssen <sjanssen@cse.unl.edu>, Henning Thielemann <storablevector@henning-thielemann.de> Maintainer: Henning Thielemann <storablevector@henning-thielemann.de> Homepage: http://www.haskell.org/haskellwiki/Storable_Vector-Package-URL: http://code.haskell.org/storablevector/ Stability: Experimental Build-Type: Simple Tested-With: GHC==6.8.2-Cabal-Version: >=1.2+Cabal-Version: >=1.6 Flag splitBase description: Choose the new smaller, split-up base package.@@ -35,13 +34,22 @@ description: Build test executables default: False +Source-Repository head+ type: darcs+ location: http://code.haskell.org/storablevector/++Source-Repository this+ type: darcs+ location: http://code.haskell.org/storablevector/+ tag: 0.2.3+ Library Build-Depends: non-negative >= 0.0.4 && <0.1, utility-ht >= 0.0.5 && <0.1, transformers >=0.0 && <0.2 If flag(splitBase)- Build-Depends: base >= 3+ Build-Depends: base >= 3 && <5 Else Build-Depends: base >= 1.0 && < 2 @@ -75,7 +83,7 @@ Extensions: CPP, ForeignFunctionInterface If flag(splitBase) Hs-Source-Dirs: tests-2- Build-Depends: base >= 3, random >= 1.0 && < 1.1+ Build-Depends: base >= 3 && <5, random >= 1.0 && < 1.1 Else Hs-Source-Dirs: tests-1 Build-Depends: base >= 1.0 && < 2@@ -88,7 +96,7 @@ Extensions: CPP, ForeignFunctionInterface Hs-Source-Dirs: ., slow-foreign-ptr, speedtest If flag(splitBase)- Build-Depends: base >= 3+ Build-Depends: base >= 3 && <5 Else Build-Depends: base >= 1.0 && < 2 If !flag(buildTests)