hostname-1.0: A very simple package providing a cross-platform means of determining the hostname
Network.HostName
type HostName = StringSource
getHostName :: IO HostNameSource