getpid() or something similar

Hal Daume III hdaume@ISI.EDU
Wed, 21 May 2003 17:01:38 -0700 (PDT)

In GHC in the Posix module, there's GetProcessID:

Prelude> :m Posix
Prelude Posix> getProcessID
Prelude Posix> it

 Hal Daume III                                   |
 "Arrest this man, he talks in maths."           |

On 22 May 2003, Peter Simons wrote:

> Please pardon me if it turns out I'm just blind, but is there any
> function I can use to get some "unique" information to use for
> temporary file names and the like? A function that will tell me my
> process ID, for instance? 
> I looked through Hugs and GHC, yet couldn't find anything but
> Data.Unique, and that looks like big-time overkill for the purpose.
> Any pointers are appreciated!
> Peter
> _______________________________________________
> Haskell-Cafe mailing list