sdr-0.1.0.12: A software defined radio library

Safe HaskellSafe
LanguageHaskell2010

SDR.PipeUtils

Description

Pipes utility functions

Synopsis

Documentation

fork :: Monad m => Producer a m r -> Producer a (Producer a m) r Source #

Fork a pipe

combine :: Monad m => Consumer a m r -> Consumer a m r -> Consumer a m r Source #

Combine two consumers into a single consumer

printStream :: Show a => Int -> Consumer a IO () Source #

A consumer that prints everything to stdout

devnull :: Monad m => Consumer a m () Source #

A consumer that discards everything

rate :: Int -> Pipe a a IO b Source #

Passthrough pipe that prints the sample rate

pMapAccum Source #

Arguments

:: Monad m 
=> (acc -> x -> (acc, y))

Accumulating function

-> acc

Initial value of the accumulator

-> Pipe x y m () 

mapAccum for Pipes