darcs patch: add withFile and withBinaryFile (#966)

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Oct 26 12:16:47 EDT 2006


Hello David,

Thursday, October 26, 2006, 8:08:42 PM, you wrote:

> In case I've been too vague, what I mean is that I'd like it if one could
> ensure that code such as

>   withFile "filename" ReadMode return >>= hGetContents

> statically fails, rather than failing at runtime with a file handle closed

and how about passing file handle to another thread? ;)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Libraries mailing list