Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Re-exporting Transport instances.
Also includes convenience functions for working directly with transports.
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