Hi,<br><br>I encountered a problem with Network.Socket in MacOS 10.5<br>Here is the code that I am testing,<br><br>-----------------------------------------<br>-----------------------------------------<br>module Main where<br>
<br>import qualified Network.Socket as Socket<br><br>main :: IO ()<br>main = <br>    do { (hostname, _) &lt;- Socket.getNameInfo [] True False (Socket.SockAddrUnix &quot;localhost&quot;)<br>       -- (hostname, _) &lt;- Socket.getNameInfo [] True False (Socket.SockAddrInet 9000  (127 + 0 * 256 + 0 * 256^2 + 1 * 256^3))<br>
       ; putStrLn (show hostname)<br>       }<br><br><br>Running the above code yields the following error<br>ghc --make -O2 TestSocket.hs <br>[1 of 1] Compiling Main             ( TestSocket.hs, TestSocket.o )<br>Linking TestSocket ...<br>
$ ./TestSocket <br>TestSocket: getNameInfo: does not exist (ai_family not supported)<br><br>If I switch to SockAddrInet instead, the error is gone.<br><br>I am using GHC 6.10.3 and Network 2.2.1<br><br>Regards,<br>Kenny<br>