[Haskell-cafe] Re: New System.Process
simonmarhaskell at gmail.com
Tue Oct 7 09:56:51 EDT 2008
john lask wrote:
> Something that has irked me in the past about System.Process is the inability to obtain an OS system handle from the haskell Process handle. Such a facility would greatly enhance the interoperabity of c and haskell libraries.
> Provision is made (although not standardised) to obtain OS specific handles from haskell File Handles which is very useful. The same should be provided for Haskell Process handles. The main barrier to such a facility is the variability between OS representations of such a type (aka windows Handles, unix PID).
> comments anyone.
You can get at the underlying process handle using
System.Process.Internals, but that's not a documented interface of
course. If you really need to do OS-specific stuff, I suggest using
System.Posix or System.Win32 instead.
More information about the Haskell-Cafe