
29 Jun
2011
29 Jun
'11
11:51 a.m.
On 29/06/2011 06:44, Bryan O'Sullivan wrote:
On Tue, Jun 28, 2011 at 5:15 PM, wren ng thornton
mailto:wren@freegeek.org> wrote: I'd like to propose adding a variant of fdSeek which returns errors directly instead of throwing an exception.
Why wouldn't you just wrap it in Control.Exception.try instead? And what's so special about seeking that suggests that it needs an alternate entry point?
(In other words, I'm opposed to this proposal.)
Me too. I can imagine that we might want a way to extract an Errno from an IO exception for users of System.Posix who really care about specific Errnos. Cheers, Simon