Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- direct :: Monad m => ChainSyncServer header point tip m a -> ChainSyncClient header point tip m b -> m (a, b)
- direct_ :: Monad m => ServerStIdle header point tip m a -> ClientStIdle header point tip m b -> m (a, b)
Documentation
direct :: Monad m => ChainSyncServer header point tip m a -> ChainSyncClient header point tip m b -> m (a, b) Source #
The 'ClientStream m' and 'ServerStream m' types are complementary. The
former can be used to feed the latter directly, in the same thread.
That's demonstrated here by constructing direct
.
direct_ :: Monad m => ServerStIdle header point tip m a -> ClientStIdle header point tip m b -> m (a, b) Source #