influxdb-0.9.0: Haskell client library for InfluxDB

Safe HaskellSafe-Inferred
LanguageHaskell2010

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 b Source

Monadic left fold for Stream.

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

Strict version of fold.