Add flag for turning warnings into errors
parent
e22a647baa
commit
93172bfd21
|
@ -25,7 +25,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
cabal-version: ${{ matrix.cabal }}
|
cabal-version: ${{ matrix.cabal }}
|
||||||
- run: cabal configure --enable-tests
|
- run: cabal configure --enable-tests --flags pedantic --jobs
|
||||||
- run: cabal freeze
|
- run: cabal freeze
|
||||||
- run: cat cabal.project.freeze
|
- run: cat cabal.project.freeze
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
|
|
@ -30,6 +30,11 @@ source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/lspitzner/brittany.git
|
location: https://github.com/lspitzner/brittany.git
|
||||||
|
|
||||||
|
flag pedantic
|
||||||
|
default: False
|
||||||
|
description: Enables @-Werror@, which turns warnings into errors.
|
||||||
|
manual: True
|
||||||
|
|
||||||
common library
|
common library
|
||||||
build-depends:
|
build-depends:
|
||||||
, aeson ^>= 2.0.1
|
, aeson ^>= 2.0.1
|
||||||
|
@ -75,6 +80,9 @@ common library
|
||||||
-Wno-safe
|
-Wno-safe
|
||||||
-Wno-unsafe
|
-Wno-unsafe
|
||||||
|
|
||||||
|
if flag(pedantic)
|
||||||
|
ghc-options: -Werror
|
||||||
|
|
||||||
common executable
|
common executable
|
||||||
import: library
|
import: library
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue