【发布时间】:2014-08-15 08:51:01
【问题描述】:
我有一个默认使用-Werror 编译的haskell 项目。这意味着当我运行cabal repl 时,它会在打开选项-Werror 的情况下运行。这意味着,例如,当我评估 2 + 2 时,我会收到以下错误消息:
<interactive>:2:3: Warning:
Defaulting the following constraint(s) to type `Integer'
(Num a0) arising from a use of `+'
In the expression: 2 + 2
In an equation for `it': it = 2 + 2
所以我需要一种方法来打开选项,-w 或者 -Wwarn 默认为 cabal repl。我该怎么做呢? ghci 的默认标志是什么?
【问题讨论】:
标签: haskell compiler-errors cabal ghci