Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个很好的理由,我想暂时关闭有关 leksah IDE 中缺少类型级别签名的警告。
我将标志更改为 ghc cabal 文件,当我从控制台运行“cabal install”时,警告不存在。
但是,如果我在 leksah IDE 中构建相同的项目,仍然会显示警告。
如何在 leksah IDE 中关闭“警告:没有类型签名的顶级绑定:”?
仅在单个文件中禁用警告比在整个项目中禁用警告要好得多。采用
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
文件顶部的编译指示。
将所需的选项添加到 cabal 文件中:
ghc 选项:-fno-warn-missing-signatures