data-store 0.3.0 → 0.3.0.1
raw patch · 3 files changed
+14/−15 lines, 3 filesdep ~transformersdep ~vector
Dependency ranges changed: transformers, vector
Files
- benchmarks/src/Common.hs +0/−2
- benchmarks/src/TS/B01.hs +11/−10
- data-store.cabal +3/−3
benchmarks/src/Common.hs view
@@ -14,8 +14,6 @@ import Control.DeepSeq (NFData(..)) import Data.Data ---------------------------------------------------------------------------------import qualified Data.Store.Internal.Type as DS--------------------------------------------------------------------------------- data C01 = C01 {-# UNPACK #-} !Int
benchmarks/src/TS/B01.hs view
@@ -13,6 +13,7 @@ import Control.Lens -------------------------------------------------------------------------------- import qualified Data.IntSet+import Data.Foldable (toList) -------------------------------------------------------------------------------- import Common (C01(..)) --------------------------------------------------------------------------------@@ -63,20 +64,20 @@ insert :: C01 -> TS -> TS insert = T.insert -lookupOOEQ :: Int -> TS -> TS-lookupOOEQ x o = o ^. T.with D1 (==) x +lookupOOEQ :: Int -> TS -> [C01]+lookupOOEQ x o = toList (o ^. T.with D1 (==) x) -lookupOOGE :: Int -> TS -> TS-lookupOOGE x o = o ^. T.with D1 (>=) x+lookupOOGE :: Int -> TS -> [C01]+lookupOOGE x o = toList (o ^. T.with D1 (>=) x) -lookupOMEQ :: Int -> TS -> TS-lookupOMEQ x o = o ^. T.with D2 (==) x+lookupOMEQ :: Int -> TS -> [C01]+lookupOMEQ x o = toList (o ^. T.with D2 (==) x) -lookupOMGE :: Int -> TS -> TS-lookupOMGE x o = o ^. T.with D2 (>=) x+lookupOMGE :: Int -> TS -> [C01]+lookupOMGE x o = toList (o ^. T.with D2 (>=) x) -lookupMMEQ :: Int -> TS -> TS-lookupMMEQ x o = o ^. T.withAny D3 [x]+lookupMMEQ :: Int -> TS -> [C01]+lookupMMEQ x o = toList (o ^. T.withAny D3 [x]) empty :: TS empty = T.empty
data-store.cabal view
@@ -1,5 +1,5 @@ name: data-store-version: 0.3.0+version: 0.3.0.1 synopsis: Type safe, in-memory dictionary with multidimensional keys. description: Type safe, in-memory dictionary with multidimensional keys.@@ -43,8 +43,8 @@ base >= 4.6 && < 5 , containers >= 0.4 && < 1 , lens >= 3.9 && < 4- , transformers >= 0.2 && < 0.3- , vector >= 0.10 && < 0.2+ , transformers >= 0.2 && < 0.4+ , vector >= 0.10 && < 0.11 , cereal >= 0.3.5 && < 0.4 , deepseq >= 1.3.0 && < 1.4