churros-0.1.0.3: 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
  c <- flex :: IO (Chan (Maybe (Maybe Int)))
  l2c c (map Just [1,2] ++ [Nothing])
  yankAll' c print
:}
Just (Just 1)
Just (Just 2)
Just Nothing
Nothing