Socket library ghc 5.02.1

Sven Eric Panitz sep@softwareag.com
Wed, 28 Nov 2001 10:53:40 +0100


	 From: "Sigbjorn Finne" <sof@galois.com>
	 Cc: <glasgow-haskell-users@haskell.org>
	 Date: Tue, 27 Nov 2001 09:30:04 -0800

	 > =

	 > Conclusion: you're hosed with ghc-5.02.1 and its socket libs under
	 > Win32. Sorry.
	 > =


	 If you don't mind getting your hands a (little) bit dirty, here's a sto=
ry
	 that will work ghc-5.02.1:

	 * edit SocketPrim.hi (and SocketPrim.p_hi), to instead of saying =

			"Socket" in its __export section it says "Socket{MkSocket}"

			(you'll find the .hi file in imports/net/ inside your 5.02.1 tree).

	 * compile up the attached NetExtra.hs as follows:

				foo$ ghc -c NetExtra.hs -fvia-C -fglasgow-exts -package net

	 * import and include NetExtra with your socket code, e.g.,



Thanks Danke Mercie, this works (although I did not fully understand,
what I was doing).


Sven Eric=