在 Stack build --pedantic 中禁用特定警告
Disable specific warnings in Stack build --pedantic
我想使用除一个 -fwarn-unused-imports
之外的所有警告在 Stack 中编译我的 Haskell 代码。
有那个选项吗?
我确认这有效:
stack build --file-watch --pedantic --ghc-options -fno-warn-unused-imports
注意要在f
后面加上no
,所以ghc的禁用选项就变成了-fno-...
我想使用除一个 -fwarn-unused-imports
之外的所有警告在 Stack 中编译我的 Haskell 代码。
有那个选项吗?
我确认这有效:
stack build --file-watch --pedantic --ghc-options -fno-warn-unused-imports
注意要在f
后面加上no
,所以ghc的禁用选项就变成了-fno-...