darcs patch: System.Posix.Temp: improve haddocks for ... (and 2
more)
gwern0 at gmail.com
gwern0 at gmail.com
Mon Jan 18 19:35:41 EST 2010
Mon Jan 18 19:27:55 EST 2010 gwern0 at gmail.com
* System.Posix.Temp: improve haddocks for mkstemp to explain what that returned String actually is
Mon Jan 18 19:30:22 EST 2010 gwern0 at gmail.com
* System.Posix.Temp: pad input filenames with 6 Xs
If the argument doesn't terminate in capital Xs, the C mkstemp will simply bomb out
with zero warning. This was not documented.
By arbitrarily sticking a bunch of Xes at the end of all arguments, we guarantee that
this exception will not be thrown, the type signature will not change, and no existing
code can break (since if it was manually avoiding the exception by adding "XXX" itself,
the temp files will now be simply 3 random characters longer, nothing worse).
Mon Jan 18 19:34:37 EST 2010 gwern0 at gmail.com
* System.Posix.Temp: rm whitespace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 6520 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/libraries/attachments/20100118/9dcdd7dd/attachment-0001.bin
More information about the Libraries
mailing list