I've now tried this on a linux box and got the same result so I presume
it's a bug. I also did manage to track down the source code but it left me
none the wiser as to why I get the compilation error.

Dominic.
---------------------- Forwarded by Dominic Steinitz/HEATHROW/BRITISH
AIRWAYS/GB on 04/03/2002 10:28 ---------------------------

From: Dominic Steinitz on 04/03/2002 05:40

To:   glasgow-haskell-users
cc:
bcc:
Subject:  Raw Sockets

How do I use raw sockets? According to the documentation I can use AF_RAW.
It also refers the user to the implementation in
fptools/hslibs/net/SocketPrim.lhs. Do I really need to do this and if so
how do I get it?

This compiles and runs as expected:

module Main(main) where

import SocketPrim (Family(AF_INET))

main = putStrLn (show AF_INET)

but this

module Main(main) where

import SocketPrim (Family(AF_RAW))

main = putStrLn (show AF_RAW)

gives the following

C:\Dom\haskell\ping>"c:\program files\glasgow haskell
compiler\ghc-5.02\bin\ghc"
 -o main test.hs -package net

test.hs:3: Module `SocketPrim' does not export `Family(AF_RAW)'




      
-------------------------------------------------------------------------------------------------

      Save time by using an eTicket and our Self-Service Check-in Kiosks.
      For more information go to http://www.britishairways.com/eservice1

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

Reply via email to