Network library patches

Neil Mitchell ndmitchell at
Tue Feb 16 13:48:44 EST 2010


I finally got the network library (darcs) building, installing and
basically working on Windows with GHC 6.12.1. To do this I set up my
environment as follows:

1) Install Cygwin 1.7 (include autoreconf)
2) Install GHC 6.12.1
3) export PATH=/cygdrive/c/ghc/ghc-6.12.1/mingw/bin:$PATH

I then did the network steps:

1) Grab network from darcs
2) autoreconf
3) Apply the patch attached, which just changes the .cabal file
4) Change all instances of CALLCONV to stdcall
5) cabal install

Please can you apply the attached patch, which should be compatible
with Linux/Mac too. I found lots of references to CALLCONV all over
the place, but couldn't figure out where it started/ended up - my
attempts at #define were rather unsuccessful. Could you please change
the logic so Windows gets stdcall as standard? I'm happy to test any
patches you come up with. Having a working network library on Windows
will be really nice, as it's stopped me upgrading to GHC 6.12.1 for a
while now.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: network_windows.patch
Type: application/octet-stream
Size: 459 bytes
Desc: not available
Url :

More information about the Libraries mailing list