How to get the file descriptor of a handle?

Volker Wysk vw at
Sat Feb 13 07:23:32 EST 2010

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 times in the libraries. But there isn't a definition anywhere. 

Any help would be appreciated.


Volker Wysk <pf3 at>

More information about the Glasgow-haskell-users mailing list