[Haskell-cafe] ghc socket weirdness

Tim Newsham newsham at lava.net
Thu Jul 24 03:04:21 EDT 2008


FreeBSD/7.0 amd64:

GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
Prelude> :module +Network
Prelude Network> listenOn $ PortNumber 8765
Loading package parsec-2.1.0.0 ... linking ... done.
Loading package network-2.1.0.0 ... linking ... done.
*** Exception: getAddrInfo: does not exist (servname not supported for 
ai_socktype)

(same error when compiled).

Anyone seen this before?  I have multiple NICs, could that be
confusing listenOn (does it not just bind on 0.0.0.0?)

Tim Newsham
http://www.thenewsh.com/~newsham/


More information about the Haskell-Cafe mailing list