churros-0.1.6.0: Channel/Arrow based streaming computation library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Churro.Transport

Description

Re-exporting Transport instances.

Also includes convenience functions for working directly with transports.

Synopsis

Documentation

l2c :: (Foldable f, Transport t) => In t (Maybe a) -> f a -> IO () Source #

Write a list to a raw Transport.

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