【发布时间】:2023-03-30 19:12:01
【问题描述】:
在 test.hs 中,我有:
doubleMe x = x + x
在 ghci 中,我输入:
Prelude> :l test
[1 of 1] Compiling Main ( test.hs, interpreted )
Ok, modules loaded: Main.
*Main> doubleMe 9
<interactive>:1:0: Not in scope: `doubleMe'
*Main>
为什么?如何解决?
【问题讨论】: