notes/pl/hs/ct/monads/monad-io.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

11 строки
240 B
Plaintext

http://blog.ezyang.com/2011/05/unraveling-the-mystery-of-the-io-monad/
http://stefan-klinger.de/files/monadGuide.pdf
fun :: IO String
fun = do n <- (readLn::IO Int) -- explicit type specifier
Strict version:
System.IO.Strict (readFile)