influxdb-0.4.0: Haskell client library for InfluxDB

Safe HaskellSafe-Inferred

Database.InfluxDB.Stream

Synopsis

Documentation

data Stream m a Source

Effectful stream

Constructors

Yield a (m (Stream m a))

Yield a value. The stream will be continued.

Done

The end of the stream.

mapM :: Monad m => (a -> m b) -> Stream m a -> m (Stream m b)Source

Map each element of a stream to a monadic action, evaluate these actions from left to right, and collect the results as a stream.

fold :: Monad m => (b -> a -> m b) -> b -> Stream m a -> m bSource

Monadic left fold for Stream.

fold' :: Monad m => (b -> a -> m b) -> b -> Stream m a -> m bSource

Strict version of fold.