mirror of
https://github.com/tfausak/witch.git
synced 2024-11-22 14:58:13 +03:00
Add pedantic
flag and remove cabal.project
This commit is contained in:
parent
c8af981042
commit
ffe3c9b706
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -31,6 +31,7 @@ jobs:
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc }}
|
||||
cabal-version: ${{ matrix.cabal }}
|
||||
- run: cabal configure --enable-tests --flags pedantic --jobs
|
||||
- run: cabal freeze && cat cabal.project.freeze
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
/.ghc.environment*
|
||||
/.stack-work/
|
||||
/cabal.project.freeze
|
||||
/cabal.project.local*
|
||||
/cabal.sandbox.config
|
||||
/dist-newstyle/
|
||||
/dist/
|
||||
|
@ -1,6 +0,0 @@
|
||||
jobs: $ncpus
|
||||
packages: .
|
||||
|
||||
package witch
|
||||
ghc-options: -Werror
|
||||
tests: True
|
@ -16,6 +16,11 @@ source-repository head
|
||||
location: https://github.com/tfausak/witch
|
||||
type: git
|
||||
|
||||
flag pedantic
|
||||
default: False
|
||||
description: Enables @-Werror@, which turns warnings into errors.
|
||||
manual: True
|
||||
|
||||
common basics
|
||||
build-depends:
|
||||
, base >= 4.10.0 && < 4.17
|
||||
@ -51,6 +56,10 @@ common basics
|
||||
ghc-options:
|
||||
-Wno-missing-kind-signatures
|
||||
|
||||
if flag(pedantic)
|
||||
ghc-options:
|
||||
-Werror
|
||||
|
||||
library
|
||||
import: basics
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user