{-# LANGUAGE BlockArguments #-}
module Control.Churro.Transport
( module Control.Churro.Transport.Chan
, module Control.Churro.Transport
)
where
import Control.Churro.Transport.Chan
import Control.Churro.Types
l2c :: (Foldable f, Transport t) => In t (Maybe a) -> f a -> IO ()
l2c :: forall (f :: * -> *) (t :: * -> *) a.
(Foldable f, Transport t) =>
In t (Maybe a) -> f a -> IO ()
l2c In t (Maybe a)
c f a
l = forall (t :: * -> *) (m :: * -> *) a b.
(Foldable t, Monad m) =>
(a -> m b) -> t a -> m ()
mapM_ (forall (t :: * -> *) a. Transport t => In t a -> a -> IO ()
yeet In t (Maybe a)
c forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. a -> Maybe a
Just) f a
l forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>> forall (t :: * -> *) a. Transport t => In t a -> a -> IO ()
yeet In t (Maybe a)
c forall a. Maybe a
Nothing