【发布时间】:2013-03-25 03:35:57
【问题描述】:
我使用 WinGHCi,我的代码(非常简单)如下:
module Main
where
import IO
main = do
hSetBuffering stdin LineBuffering
putStrLn "Enter your name: "
name <- getLine
putStrLn("Hello, " ++ name ++ ", how are you?");
错误信息:
2.hs:4:8:
Could not find module `IO'
It is a member of the hidden package `haskell98-2.0.0.1'.
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
(这些代码在 WinHugs 中运行正常,但我只想编译它)
也许这个问题真的很琐碎,但是我自己在研究Haskell,没有人可以咨询。我尝试在 Google 中搜索,遗憾的是找不到任何有意义的内容。
我卡住了...提前谢谢。
【问题讨论】:
-
完整的解释见我的回答here。
标签: haskell