Skip to content

Instantly share code, notes, and snippets.

@Lartza
Last active January 5, 2018 23:13
Show Gist options
  • Save Lartza/d90fbf70e96825676b2bd69d559c4145 to your computer and use it in GitHub Desktop.
Save Lartza/d90fbf70e96825676b2bd69d559c4145 to your computer and use it in GitHub Desktop.
import Network.HostName
import System.Posix.User
main = do
hostname <- getHostName
username <- getLoginName
putStrLn (hostname ++ " hugs " ++ username)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment