[Haskell-cafe] Opening the same file multiple times

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Dec 12 13:12:48 EST 2005

On Mon, 2005-12-12 at 09:52 -0800, Donn Cave wrote:

> Of course there's a risk that the authors of ghc may notice that
> we're doing this and come up with a way to thwart it, but it seems
> to me that between interfering with legitimate applications and not
> working reliably anyway, there'd be a case for letting go of this
> notion altogether.

Except that it is specified to work this way in the Haskell Report.

Instead of changing the semantics of the standard libraries what you
want is a back door to allow the alternative semantics that you want.
Even better would be to provide a supported api for opening files
without locking.


More information about the Haskell-Cafe mailing list