Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- readStdin = do
- contents <- getContents
- return contents
- readFromFile fileName = do
- handle <- openFile filename ReadMode
- contents <-hGetContents hadle
- hClose handle
- return contents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement