RE: Socket.hs problem under Windows 2000

2000-10-18 Thread Sigbjorn Finne


You need to init WinSock first, i.e.,

  main = withSocketsDo $ do {...}

--sigbjorn

Martijn [mailto:[EMAIL PROTECTED]] writes:
> 
> Hi,
> 
> I'm trying to set up some socket connections with Haskell on 
> a Windows 2000 
> platform, but I can't seem to get them working.
> 
> My program is rather simple:
> --
> import Socket
> 
> main = do { socket <- listenOn (PortNumber 1234)
>; return ()
>}
> --
> 
> I know this shouldn't do anything at all, but instead it 
> gives an error 
> message:
> 
> Fail: does not exist
> Action: getProtocolByName
> Reason: no such protocol entry
> 
> I get the same message for any socket operation I try to 
> perform. Also a 
> basic call like getHostName from module BSD does not work. 
> I've compiled 
> with ghc version 4.05 with option "-syslib misc"
> 
> Should I compile differently, is this a problem with CygWin, or am I 
> overlooking something?
> 
> TIA,
> Martijn Schrage
> 

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Socket.hs problem under Windows 2000

2000-10-18 Thread Martijn

Hi,

I'm trying to set up some socket connections with Haskell on a Windows 2000 
platform, but I can't seem to get them working.

My program is rather simple:
--
import Socket

main = do { socket <- listenOn (PortNumber 1234)
   ; return ()
   }
--

I know this shouldn't do anything at all, but instead it gives an error 
message:

Fail: does not exist
Action: getProtocolByName
Reason: no such protocol entry

I get the same message for any socket operation I try to perform. Also a 
basic call like getHostName from module BSD does not work. I've compiled 
with ghc version 4.05 with option "-syslib misc"

Should I compile differently, is this a problem with CygWin, or am I 
overlooking something?

TIA,
Martijn Schrage


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



GHC for RedHat 7.0 (gcc 2.96)

2000-10-18 Thread Manuel M. T. Chakravarty

GHC (4.08.1) rpm packages for RedHat 7.0 are available from

  ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-4.08.1-2.i386.rpm
  ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-prof-4.08.1-2.i386.rpm

[The second package is only required for profiling.]

The corresponding source rpm is at

  ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/src/ghc-4.08.1-2.src.rpm

** IMPORTANT **

For this to work, you have to additionally install on old
version (2.0) of the GNU Multiprecision Library (GMP).  Get
it off your old RedHat 6.2 CD or alternatively from

  
ftp://ftp.linux.com/mounts/u2/mirrors/redhat/up2date/rhl-6.2/i386/RedHat/RPMS/gmp-2.0.2-13.i386.rpm
  
ftp://ftp.linux.com/mounts/u2/mirrors/redhat/up2date/rhl-6.2/i386/RedHat/RPMS/gmp-devel-2.0.2-13.i386.rpm

* You have to install *both* packages.

* They can co-exist with the new library (version 3.0)
  installed by default with RedHat 7.0.

NOTE: These packages cannot be installed on RedHat 6.2 and
  earlier (unless you manually upgrade to the rpm
  package manager 4.0).

Happy Hacking,
Manuel

PS: Could these packages be linked from GHC's download page?
And please also add the comment and links re gmp 2.0.
Moreover, please *don't* remove the old links for the
benefit of RH6.2 users.

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users