Bulat Ziganshin <bulat.ziganshin@gmail.com> wrote:
ps: http://www.haskell.org/ghc/dist/stable/dist/ghc-6.10.1-src.tar.bz2
ghc-6.10.1\libraries\Win32\examples

Thanks for this. 

I noticed some errors in the sample that might help others: 
1) you need to replace "win32" with "Win32" in the given command line instruction
2) the Win32 package in this link gives a type error during the "setup build" phase (expecting exception and given ioerror?) but you can compile the example against the Win32 package in ghc 6.8.3