
10 Jul
2023
10 Jul
'23
1:26 p.m.
On Mon, Jul 10, 2023 at 12:03:37PM +0000, Zoran BoĆĄnjak wrote:
It should however be possible by forking a new thread, write elements from Shell to some shared buffer and let StepT read from this buffer.
Rather than a "shared buffer", it shouldn't be too difficult with a BoundedChan. https://hackage.haskell.org/package/BoundedChan-1.0.3.0 just write to the BoundedChan on the "Shell" side, and read from it on the "SourceT" (StepT) side. -- Viktor.