On Fri, 5 Sep 2003, Simon Marlow wrote:

> ... Claiming a lock on a file is
> > easy in C (well,
> > it takes 18 lines...), but there's nothing in the standard Haskell
> > libraries that can do it. So I borrowed a little C code from
> > the net, and
> > called it via the FFI.
>
> Locking support is available in the unix package distributed with GHC.
> See:
>
> http://www.haskell.org/ghc/docs/latest/html/unix/System.Posix.IO.html#7
>
>
> Cheers,
>       Simon
>

That'll teach me not just to look in the standard Haskell 98 libraries!
Thanks.

john

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to