3

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?

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Ah, I knew about real world haskell, but I didn't know there was a chapter on systems programming, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.