
19 Oct
2005
19 Oct
'05
3:39 p.m.
I'm running this code at the ghci prompt by loading foo.hs and then running main. Don't know if this helps. On Oct 19, 2005, at 4:35 PM, Joel Reymont wrote:
*** Exception: getServiceEntry: does not exist (no such service entry) [...] connect :: HostName -> Int -> IO Handle connect h p = connectTo h $ PortNumber $ fromIntegral p
main = withSocketsDo $ do connect "10.0.0.1" 15667