churros-0.1.1.0: Channel/Arrow based streaming computation library.
Safe HaskellNone
LanguageHaskell2010

Control.Churro.Transport

Description

Re-exporting Transport instances.

Also includes convenience functions for working directly with transports.

Synopsis

Documentation

l2c :: Transport t => t (Maybe a) -> [a] -> IO () Source #

Write a list to a raw Transport.

>>> import Control.Concurrent.Chan
>>> :{
do
  (i,o) <- flex :: IO (TransportChan (Maybe Int))
  l2c i (map Just [1,2] ++ [Nothing])
  yankAll' o print
:}
Just (Just 1)
Just (Just 2)
Just Nothing
Nothing