Stack:在特定项目上默认使用 pedantic 标志
Stack: use the pedantic flag by default on a particular project
我想构建一个始终使用 --pedantic
标志的项目。现在我正在使用
stack build --pedantic
命令。但我想始终为这个项目使用这个标志(因此,不是全局的)。有办法配置吗?
目前,迂腐的几乎只是意味着使用 --ghc-options "-Wall -Werror" 进行构建。因此,在 stack.yaml 中,您可以使用:
ghc-options:
"*": -Wall -Werror
将来,--pedantic
可能会做得更多,请参阅 https://github.com/commercialhaskell/stack/issues/1323 and https://github.com/commercialhaskell/stack/issues/3166。届时它可能成为 stack.yaml
配置中的一个选项。
我想构建一个始终使用 --pedantic
标志的项目。现在我正在使用
stack build --pedantic
命令。但我想始终为这个项目使用这个标志(因此,不是全局的)。有办法配置吗?
目前,迂腐的几乎只是意味着使用 --ghc-options "-Wall -Werror" 进行构建。因此,在 stack.yaml 中,您可以使用:
ghc-options:
"*": -Wall -Werror
将来,--pedantic
可能会做得更多,请参阅 https://github.com/commercialhaskell/stack/issues/1323 and https://github.com/commercialhaskell/stack/issues/3166。届时它可能成为 stack.yaml
配置中的一个选项。