PROPOSAL: add tryFdSeek to unix

Simon Marlow marlowsd at
Wed Jun 29 17:51:18 CEST 2011

On 29/06/2011 06:44, Bryan O'Sullivan wrote:
> On Tue, Jun 28, 2011 at 5:15 PM, wren ng thornton <wren at
> <mailto:wren at>> 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 


More information about the Libraries mailing list