Haskell语言学习笔记(19)File IO

关于IO Action 类型为IO t。 运算时不执行,于是没有任何效果,只有执行时才会有效果,产生反作用。 一个IO Action只有在其余IO Action中才能被执行。 类型为IO t的IO Action被执行后的结果类型为t。 File IO 函数 openFile hClose 打开和关闭文件 readMode, writeMode, readwriteMode, appendMode
相关文章
相关标签/搜索