Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created April 15, 2015 12:26
Show Gist options
  • Save shigemk2/0599d735ccf1a05620cc to your computer and use it in GitHub Desktop.
Save shigemk2/0599d735ccf1a05620cc to your computer and use it in GitHub Desktop.
import Prelude hiding (putStr)
main = do
putStr "Hey, "
putStr "I'm "
putStr "Andy!"
putStr :: String -> IO ()
putStr [] = return ()
putStr (x:xs) = do
putChar x
putStr xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment