[Haskell-cafe] Standard output of exec

Donn Cave donn at avvanta.com
Thu Dec 11 17:10:40 UTC 2014


On Thu, Dec 11, 2014 at 10:18 AM, Michael Snoyman <michael at snoyman.com>
wrote:

> You can use readProcess[1], but it has some downsides:
>
> 1. Can't specify all options to CreateProcess, e.g., working directory and
> environment variables.
>
> 2. Relies on lazy I/O

I sure feel a pall of dread at the words "lazy I/O", but in this case,
readProcess takes the curse off it by evaluating the output, am I right?  
Hence the repeated assurances in the documentation that it's strict.

	Donn


More information about the Haskell-Cafe mailing list