Add pedantic flag and remove cabal.project

This commit is contained in:
Taylor Fausak 2021-12-04 15:26:06 -05:00
parent c8af981042
commit ffe3c9b706
4 changed files with 12 additions and 7 deletions

View File

@ -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
View File

@ -2,6 +2,7 @@
/.ghc.environment*
/.stack-work/
/cabal.project.freeze
/cabal.project.local*
/cabal.sandbox.config
/dist-newstyle/
/dist/

View File

@ -1,6 +0,0 @@
jobs: $ncpus
packages: .
package witch
ghc-options: -Werror
tests: True

View File

@ -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