pipes-cellular-0.0.0.1: Pipes-based combinators for cellular data processing

Copyright© 2015 Patryk Zadarnowski <pat@jantar.org>
LicenseBSD3
Maintainerpat@jantar.org
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Pipes.Maybe

Description

Conversion between finite and infinite pipe using the Either type.

Synopsis

Documentation

catWhileJust :: Monad m => Pipe (Maybe a) a m () Source

A pipe that receives and forwards all Just values in its input up to the first occurence of Nothing.

extendWithNothing :: Monad m => Pipe a b m r -> Pipe a (Maybe b) m r' Source

Converts a finite pipe into an infinite pipe, in which the original pipe's values are followed by an infinite stream of Nothing.