Haskell学习笔记--IO
Haskell学习笔记--IO
(是IO不是OI
下周考试,赶紧冲刺
data IO a
A value of type
is a computation which, when performed, does some I/O before returning a value of type IO
aa
.
return :: a -> IO a
putChar :: Char -> IO ()
putStr :: String -> IO () 打完不换行
putStrLn :: String -> IO() 打完换行
getChar :: IO Char
getLine :: IO String