darcs patch: System.Posix.Temp: improve haddocks for ... (and 2 more)

Simon Marlow marlowsd at gmail.com
Fri Jan 22 06:17:21 EST 2010


On 19/01/2010 00:35, gwern0 at gmail.com wrote:
> 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

I'll validate and apply; thanks.

Simon


More information about the Libraries mailing list