
28 Jun
2011
28 Jun
'11
8:05 p.m.
On 28 June 2011 18:56, Gracjan Polak
Anyway, where do I find an 'openFileShared' function? Packages unix/Win32 do not have obvious leads...
Perhaps the functions in System.Posix.IO do what you want? http://hackage.haskell.org/packages/archive/unix/2.4.2.0/doc/html/System-Pos.... The equivalent on the Win32 side is CreateFile: http://hackage.haskell.org/packages/archive/Win32/2.2.0.2/doc/html/System-Wi... There is a way to create a Handle from a Fd (http://hackage.haskell.org/packages/archive/base/latest/doc/html/GHC-IO-Hand...), but I'm not sure if there is an equivalent to build a Handle from a Win32 HANDLE... Hope those pointers help... Max