![]() |
1
6
如果你重做你的
*Main> System.Environment.withArgs ["main.txt"] main 在GHCI内,不要在stdin上给出EOF。如果这样做,所有进一步的读取stdin的尝试都将失败: Prelude> getLine *** Exception: <stdin>: hGetLine: illegal operation (handle is closed) Prelude> getContents *** Exception: <stdin>: hGetContents: illegal operation (handle is closed) |
![]() |
2
4
您可以在ghci中键入:main来调用命令行参数。恐怕你只是想用一下。 |
![]() |
mherzl · 如何在Ghci调试器中退出正在运行的计算? 7 年前 |
![]() |
mherzl · 在ghci中,如何删除现有绑定? 7 年前 |
![]() |
blue-sky · 打印递归循环的调用堆栈 9 年前 |
|
peter a g · ghci类的意外行为实例 10 年前 |
|
user3928256 · Haskell中的“--file:” 10 年前 |
|
Goutham · Haskell代码行未编译:“非法的数据类型上下文” 11 年前 |