我是Haskell的新手,在启动ghci后,我尝试了:
ghci
f x = 2 * x
我得到了:
<interactive>:1:4: parse error on input `='
我不明白。
奇怪的是,它以前运行得很好。我想我做错了Haskell的配置。重新安装ghc6并不能解决问题。
作为参考,我使用Ubuntu10.4,ghc6的版本是6.12.1-12
https://stackoverflow.com/questions/6184940
相似问题