biohazard-2.1: bioinformatics support library
Safe HaskellNone
LanguageHaskell2010

Bio.Streaming.Vector

Synopsis

Documentation

stream2vector :: (MonadIO m, Vector v a) => Stream (Of a) m r -> m (Of (v a) r) Source #

Reads the whole stream into a Vector.

stream2vectorN :: (MonadIO m, Vector v a) => Int -> Stream (Of a) m () -> m (v a) Source #

Equivalent to stream2vector . Streaming.Prelude.take n, but terminates early and is thereby more efficient.