[darcs-users] Something is seriously wrong with Darcs on Windows

Simon Marlow marlowsd at gmail.com
Tue Apr 27 12:41:23 UTC 2010


On 27/04/2010 13:37, Petr Rockai wrote:
> Simon Marlow<marlowsd at gmail.com>  writes:
>> I see the problem.  In GHC 6.10.x, System.Posix.Internals.lstat was calling the
>> 32-bit stat function, but the accessor functions st_sizeof and co are expecting
>> the 64-bit stat struct.  Luckilly we never tickled the bug in GHC (and strictly
>> speaking, System.Posix.Internals is not a public API).
> I see. Well, indeed, strictly speaking this is not a public API. On the
> other hand, there's no public API that can be used to do a stat without
> considerable overhead. (The problem with the public API is that it uses
> unsafePerformIO which is *very* expensive...)

Which public API are you referring to?  I'd recommend using System.Win32 
for this kind of thing on Windows if possible.  If you call lstat you're 
already going through a layer of translation, namely the msvcrt runtime.

Cheers,
	Simon


More information about the darcs-users mailing list