haskell piping strings into IO

Sorry if this is a common question. I have this simple IO() function: greeter :: IO() greeter = do putStr "What's your name? " name <- getLine putStrLn $ "Hi, " ++ name Now I want to call