Implement unix pipes in haskell

I am writing a mini-shell, and although I have most of it planned, one thing that I do not know how to do is to implement the output of one program as the input of another. Is there a pattern or something that can point me in the right direction?

+3
source share
1 answer

The RWH book has a complete example of how to emulate pipelines in Haskell, IMO is one of the best examples of the book, and it can be quite useful.

=> http://book.realworldhaskell.org/read/systems-programming-in-haskell.html#systems.piping

Good luck.

+4
source

Source: https://habr.com/ru/post/1769802/


All Articles