作者:WSDRFCGFC_901 | 来源:互联网 | 2022-12-02 12:52
1> Sibi..:
Haskell源文件应该以.的扩展名结尾hs
.重命名文件应该可以使它工作:
$ mv tryout.hl tryout.hs
演示ghci
:
?> :l tryout.hl
target ‘tryout.hl’ is not a module name or a source file
?> :l tryout.hs
[1 of 1] Compiling Main ( tryout.hs, interpreted )
Ok, one module loaded.