[Haskell-beginners] Convert numeric IP to Network.Socket.HostAddress

harry voldermort at hotmail.com
Sun Feb 2 21:01:24 UTC 2014


I need to convert a numeric IP (such as 1.2.3.4) to a HostAddress for
consumption by SockAddrInet. The only function I can find to do this is
inet_addr, which is impure (can do DNS lookups). Is there a pure conversion?



More information about the Beginners mailing list