Error in Haddock documentation for process

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Fri Jul 30 10:23:21 EDT 2010


Brandon S Allbery KF8NH <allbery at ece.cmu.edu> writes:

> 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 at gmail.com
IvanMiljenovic.wordpress.com


More information about the Libraries mailing list