How to get the file descriptor of a handle?

2010-02-13 Thread Volker Wysk
Hello I'd like to know how you get the file descriptor, which is incapsulated in a handle. The libraries GHC.IO.Handle/GHC.IO.Handle.FD only provide for the other direction. The function haFD, which I've used before I've updated to the current version of GHC (6.12), appears to be in use two

Re: Fw: Re: Re[2]: No more ExitException? - documentation bug

2010-02-13 Thread Ian Lynagh
On Thu, Jan 28, 2010 at 08:32:57AM +0100, Volker Wysk wrote: As you can see, it throws the ExitCode, not an ExitException. The documentation is faulty. Thanks for the report; fixed. Thanks Ian ___ Glasgow-haskell-users mailing list

Re: Confusion about GHC and GMP

2010-02-13 Thread Ian Lynagh
On Fri, Feb 12, 2010 at 01:17:13PM -0800, Greg Fitzgerald wrote: I wonder if someone might be able to clear a few things up for me about implementing Integer with GMP.  First, is the link below the most up-to-date information regarding GHC's situation?

Re: How to get the file descriptor of a handle?

2010-02-13 Thread Jeremy Shaw
Hello, In GHC 6.12 there is no guarantee that a Handle is backed up by a file descriptor. That said, check out the handleToFd defined on line 141 here: http://patch-tag.com/r/mae/sendfile/snapshot/current/content/pretty/src/Network/Socket/SendFile/Internal.hs A better type might be: