
Hi everyone, I'm having trouble using the Socket module on Solaris. The following program: import System import Socket import IO main = do d <- connectTo "localhost" (PortNumber 80) hPutStr d "GET / HTTP/1.0\n\n" hFlush d c <- (hGetContents d) putStr c fails with: Fail: invalid argument Action: getSocketOption Reason: Invalid argument I'm using ghc-5.02.1 . Thanks. __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com

I'm having trouble using the Socket module on Solaris.
this is a known problem with ghc-5.02. Sockets work with 5.00. see http://haskell.org/pipermail/glasgow-haskell-users/2001-October/001008.html BTW is there a searchable index for this mailling list archive? -- -- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ -- -- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --
participants (3)
-
Johannes Waldmann
-
Luis Diego Fallas
-
Richard Uhtenwoldt