Skip to content

Instantly share code, notes, and snippets.

@L8D
Forked from Siim/cat.hs
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save L8D/8980319 to your computer and use it in GitHub Desktop.
Save L8D/8980319 to your computer and use it in GitHub Desktop.
import System.Environment (getArgs)
main = do
args <- getArgs
if null args then interact id else mapM ((>>= putStr) . readFile) args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment