Should inet_ntoa Be Pure?

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sat May 7 06:59:16 EDT 2005


Does anyone know why these are in the IO monad? Aren't they pure functions 
converting between dotted-decimal strings and a 32-bit network byte ordered 
binary value?

Dominic.

http://www.haskell.org/ghc/docs/latest/html/libraries/network/Network.Socket.html#v%3Ainet_addr
http://www.haskell.org/ghc/docs/latest/html/libraries/network/Network.Socket.html#v%3Ainet_ntoa



More information about the Libraries mailing list