8 Feb 22:25
documentation patch for process
Evan Laforge <qdunkan <at> gmail.com>
2012-02-08 21:25:55 GMT
2012-02-08 21:25:55 GMT
I recently burned some time because I didn't realize that
System.Process.createProcess doesn't report when the binary isn't
found. I guess I was used to that behaviour from python's subprocess
module, which goes to some effort to report the error from the
fork()ed child when exec() fails. After a failed solution, I did some
poking around in the source to see exactly what haskell's process
does.
In the interests of saving someone else that time, I submit a patch to
process to add some documentation. I'm not sure how to do a 'darcs
send' with git, but here's the patch:
% git log | head
commit 5a46937961b3400fa58ccffc785d0de8c1c01d94
Author: Evan Laforge <qdunkan <at> gmail.com>
Date: Wed Feb 8 13:25:16 2012 -0800
More detailed haddock for createProcess: document what happens if
the binary is not found
commit c8b30a6f1d493ab724f2da05dbc49496b119a051
Author: Simon Marlow <marlowsd <at> gmail.com>
Date: Mon Jan 16 16:25:34 2012 +0000
% git diff HEAD\^
diff --git a/System/Process.hs b/System/Process.hs
index f3a8f9b..a372228 100644
--- a/System/Process.hs
+++ b/System/Process.hs
@@ -234,9 +234,18 @@ To create a pipe from which to read the output of @ls@:
(Continue reading)
RSS Feed