openBinaryTempFile
Ben Franksen
ben.franksen at online.de
Sat Feb 21 00:03:26 UTC 2015
We are using this function from base in Darcs in a way that causes trouble:
the returned file handle is closed immediately and only the filename is
passed on. Then the file gets re-opened and closed again and some time later
deleted. If openBinaryTempFile is used in this way a few times in a row, it
returns the same file name every time. I tested this with a small test
program.
My question: is openBinaryTempFile supposed to behave like that (if used in
this way)?
I am testing this on an ubuntu trusty with ghc-7.6.3, meaning base-4.6.0.1.
Has the function been changed in later versions?
Cheers
Ben
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies and the other
way is to make it so complicated that there are no obvious deficiencies.
The first method is far more difficult." ― C.A.R. Hoare
More information about the Libraries
mailing list