【发布时间】:2011-06-07 04:53:48
【问题描述】:
我从零到 Haskell,出现以下无法摆脱的错误。基本上 t2 正在尝试使用在另一个模块t1 中定义的函数add1。所以
t1.hs-----
module t1 (add1) where
add1 :: Int -> Int
add1 x = x + 1
t2.hs-----
module t2 where
import t1
add1 2
错误总是说parse error on inputt2'`
有什么问题?
【问题讨论】:
标签: haskell