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
标签:String,--,value,Char,Haskell,IO,type 来源: https://www.cnblogs.com/liankewei/p/15549486.html