> I'm writing a program which does
>  import Socket
> but not
>  import SocketPrim
> 
> GHC complains that the type constructor Socket isn't in scope.
> Indeed, in Socket.lhs from GHC 4.04.19990916 I see that Socket isn't
> exported, even though a function listenOn :: PortID -> IO Socket is.
> 
> When I say
>  import SocketPrim (Socket)
> all is well.

Fixed.  I'm not sure why it wasn't exported - perhaps because you need to
import SocketPrim in order to write anything more than toy programs anyway
:)

Cheers,
        Simon

Reply via email to