Skip to content

Instantly share code, notes, and snippets.

@Siim
Created September 2, 2010 00:27
Show Gist options
  • Save Siim/561624 to your computer and use it in GitHub Desktop.
Save Siim/561624 to your computer and use it in GitHub Desktop.
import System.Environment (getArgs)
main = do
filenames <- getArgs
case null filenames of
True -> interact id
False -> putStr . concat =<< mapM readFile filenames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment