packages feed

zoom-cache 0.1.0.2 → 0.2.0.0

raw patch · 3 files changed

+7/−14 lines, 3 filesdep ~iteratee

Dependency ranges changed: iteratee

Files

Data/ZoomCache/Write.hs view
@@ -35,7 +35,6 @@      -- * TrackSpec helpers     , oneTrack-    , oneTrackVariable ) where  import Blaze.ByteString.Builder hiding (flush)@@ -178,15 +177,9 @@             where                 trackState = mkTrackState spec (TS 0) 1024 --- | Create a track map for a single constant-rate stream of a given type,--- as track no. 1-oneTrack :: TrackType -> Rational -> L.ByteString -> TrackMap-oneTrack ztype rate name = IM.singleton 1 (TrackSpec ztype ConstantDR rate name)---- | Create a track map for a single variable-rate stream of a given type,--- as track no. 1-oneTrackVariable :: TrackType -> L.ByteString -> TrackMap-oneTrackVariable ztype name = IM.singleton 1 (TrackSpec ztype VariableDR 0 name)+-- | Create a track map for a stream of a given type, as track no. 1+oneTrack :: TrackType -> DataRateType -> Rational -> L.ByteString -> TrackMap+oneTrack zType drType rate name = IM.singleton 1 (TrackSpec zType drType rate name)  -- | Query the maximum number of data points to buffer for a given track before -- forcing a flush of all buffered data and summaries.
tools/zoom-cache.hs view
@@ -119,10 +119,10 @@     w :: (ZoomWrite a, ZoomWrite (TimeStamp, a))       => TrackType -> [a] -> FilePath -> IO ()     w ztype d-        | variable  = withFileWrite (oneTrackVariable ztype label)+        | variable  = withFileWrite (oneTrack ztype VariableDR rate' label)                           (not noRaw)                           (sW >> mapM_ (write 1) (zip (map TS [1,3..]) d))-        | otherwise = withFileWrite (oneTrack ztype rate' label)+        | otherwise = withFileWrite (oneTrack ztype ConstantDR rate' label)                           (not noRaw)                           (sW >> mapM_ (write 1) d)     rate' = fromInteger rate
zoom-cache.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.1.0.2+Version:             0.2.0.0  -- A short (one-line) description of the package. Synopsis:            A streamable, seekable, zoomable cache file format@@ -76,7 +76,7 @@                        bytestring,                        containers,                        data-default,-                       iteratee >= 0.8.0,+                       iteratee >= 0.8.6.0,                        MonadCatchIO-transformers,                        mtl >= 2.0.0.0 && < 3,                        ui-command