Can you use the SockAddrUnix constructor of SockAddr? 

See http://hackage.haskell.org/package/network-2.2.1.3/docs/Network-Socket.html#t%3ASockAddr

Tim Perry
(916) 505-3634


On Sun, Feb 2, 2014 at 1:01 PM, harry <voldermort@hotmail.com> wrote:
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?

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners