yesodweb/Shelly.hs — pull request #2 by asmyers (2012-04-03 22:00:35+00:00)
Title: Run with std input

I added functions runStdin and runStdin_ which take an extra Text argument. This Text argument will be written to stdin of the process when it is executed. Allows heredoc like behavior which is useful in some situations.

To implement this I created runFoldLines' which takes a (Maybe Text) argument compared to runFoldLines. runfoldLines now calls out to runFoldLines' with a Nothing argument for the std input argument. Not sure if this is the right way to do this but it seems clean.