[Haskell-cafe] Re: Trouble with simple embedding of shell in haskell

2006-09-21 Thread George Brewster
Donn Cave wrote: On Thu, 21 Sep 2006, George Brewster wrote: I'm just tried writing a function to allow convenient embedding of shell commands, but I'm running into behavior I don't really understand somewhere at the intersection of lazy evaluation, IO, and threading. You may also find

Re: [Haskell-cafe] Re: Trouble with simple embedding of shell in haskell

2006-09-21 Thread Donn Cave
On Thu, 21 Sep 2006, George Brewster wrote: ... Yup, I'm on linux. My goal is to have a function which gives me a lazy string which is the output of a shell command, and takes a string as input. In particular, I'd like the shell command to behave lazily (read only as much input as is