Created
January 10, 2014 18:04
-
-
Save etrepum/8359367 to your computer and use it in GitHub Desktop.
Prelude IO functions that act on stdin/stdout
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
$ echo ':browse Prelude' | ghci | grep '\(::\|->\) IO ' | grep -v '\(FilePath\|IOError\)' | |
getChar :: IO Char | |
getContents :: IO String | |
getLine :: IO String | |
interact :: (String -> String) -> IO () | |
print :: Show a => a -> IO () | |
putChar :: Char -> IO () | |
putStr :: String -> IO () | |
putStrLn :: String -> IO () | |
readIO :: Read a => String -> IO a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment