bitstream-0.2.0.2: Fast, packed, strict and lazy bit streams with stream fusion

Safe HaskellSafe-Infered

Data.Bitstream.Fusion.Monadic

Description

Some functions currently missing from Data.Vector.Fusion.Stream.Monadic.

Documentation

genericLength :: (Monad m, Num n) => Stream m α -> m nSource

genericTake :: (Monad m, Integral n) => n -> Stream m α -> Stream m αSource

genericDrop :: (Monad m, Integral n) => n -> Stream m α -> Stream m αSource

genericIndex :: (Monad m, Integral n, Show n) => Stream m α -> n -> m αSource

genericReplicate :: (Monad m, Integral n) => n -> α -> Stream m αSource

genericReplicateM :: (Monad m, Integral n) => n -> m α -> Stream m αSource

genericUnfoldrN :: (Monad m, Integral n) => n -> (β -> Maybe (α, β)) -> β -> Stream m αSource

genericUnfoldrNM :: (Monad m, Integral n) => n -> (β -> m (Maybe (α, β))) -> β -> Stream m αSource

genericFindIndex :: (Monad m, Integral n) => (α -> Bool) -> Stream m α -> m (Maybe n)Source

genericFindIndexM :: (Monad m, Integral n) => (α -> m Bool) -> Stream m α -> m (Maybe n)Source

genericIndexed :: (Monad m, Integral n) => Stream m α -> Stream m (n, α)Source