开发者

implement unix pipes in haskell

开发者 https://www.devze.com 2023-01-20 00:28 出处:网络
I\'m writing a mini shell and although I\'ve got most of it planned out, one thing I\'m not sure how to do is implement piping the o开发者_开发百科utput of one program as the input of another. Is ther

I'm writing a mini shell and although I've got most of it planned out, one thing I'm not sure how to do is implement piping the o开发者_开发百科utput of one program as the input of another. Is there a sample or something that can point me in the right direction?


The RWH Book has a complete example of how to emulate piping in Haskell, IMO is one of the best examples of the book and it could be quite enlightening.

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

Good Luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消