Error in Haddock documentation for process

I just spotted the following problem in the documentation for readProcess [1]. The documentation has the sample usage returning an "IO (Either a String)" action, yet the function only returns an "IO String".
readProcess "date" [] [] Right "Thu Feb 7 10:03:39 PST 2008\n"
[1]: http://hackage.haskell.org/packages/archive/process/1.0.1.3/doc/html/System-... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/29/10 18:19 , Ivan Lazar Miljenovic wrote:
"IO (Either a String)" action, yet the function only returns an "IO String".
readProcess "date" [] [] Right "Thu Feb 7 10:03:39 PST 2008\n"
That looks like an Either to me... - -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxS1n0ACgkQIn7hlCsL25WGGgCgit6yoaGyMQo1fjMllrO9+XY5 sqwAoL8hcYoRdPc2rIk8smb9hp/5lXLq =1znH -----END PGP SIGNATURE-----

Brandon S Allbery KF8NH
On 7/29/10 18:19 , Ivan Lazar Miljenovic wrote:
"IO (Either a String)" action, yet the function only returns an "IO String".
readProcess "date" [] [] Right "Thu Feb 7 10:03:39 PST 2008\n"
That looks like an Either to me...
Well, yes; I'm guessing at some point in the distant pass readProcess returned an Either instead of throwing an error if the process didn't exit successfully. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

I just spotted the following problem in the documentation for readProcess [1]. The documentation has the sample usage returning an "IO (Either a String)" action, yet the function only returns an "IO String".
readProcess "date" [] [] Right "Thu Feb 7 10:03:39 PST 2008\n"
This has already been fixed. See my mail from July 11. Cheers, Simon

Simon Hengel
I just spotted the following problem in the documentation for readProcess [1]. The documentation has the sample usage returning an "IO (Either a String)" action, yet the function only returns an "IO String".
readProcess "date" [] [] Right "Thu Feb 7 10:03:39 PST 2008\n"
This has already been fixed. See my mail from July 11.
OK, I obviously didn't use the right search terms... As for the second part your patch fixed (it only returning stdout), what happens to stderr then? just uses the normal stderr to the console? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (3)
-
Brandon S Allbery KF8NH
-
Ivan Lazar Miljenovic
-
Simon Hengel