Created
May 16, 2016 22:33
-
-
Save jackdalton/1db88b5d746075cd28a460f455373987 to your computer and use it in GitHub Desktop.
The "cat" command line utility, implemented in Haskell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Environment | |
main :: IO () | |
main = do | |
args <- getArgs | |
let fileName = head args | |
fcontents <- readFile fileName | |
print fcontents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment