在haskell中实现unix管道

发布于 2024-09-28 08:36:36 字数 97 浏览 2 评论 0原文

我正在编写一个迷你 shell,虽然我已经计划好了大部分内容,但我不确定如何做的一件事是将一个程序的输出作为另一个程序的输入进行管道传输。有样本或其他东西可以为我指明正确的方向吗?

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 output of one program as the input of another. Is there a sample or something that can point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一梦浮鱼 2024-10-05 08:36:36

RWH 书有一个关于如何在 Haskell 中模拟管道的完整示例,IMO 是这本书最好的示例之一,它可能很有启发性。

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

祝你好运。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文