[Haskell-cafe] Execution of external command

Jules Bean jules at jellybean.co.uk
Fri Dec 14 04:21:30 EST 2007

Evan Laforge wrote:
>> it seems that script may be not terminated if its output isn't read, so
>> better code should be
>> (_, h, g, _) <- runInteractiveCommand "script params"
>> result <- hGetLine h
>> hGetContents h >>= evaluate.length
>> hGetContents g >>= evaluate.length
> Tangent here, but does anyone else think that something like
> hGetContentsEagerly would be handy in System.IO? 



PS we could give it a nice sensible name like hGetContents. We could 
renaming the existing hGetContents to 

More information about the Haskell-Cafe mailing list