Skip to content

Commit e42e789

Browse files
committed
Haskell CI: turn of -Werror=unused-packages; hopeless for github-samples
1 parent 4adbc91 commit e42e789

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ jobs:
246246
echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project
247247
if [ $((HCNUMVER >= 80400)) -ne 0 ] ; then echo "package github-samples" >> cabal.project ; fi
248248
if [ $((HCNUMVER >= 80400)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project ; fi
249-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package github" >> cabal.project ; fi
250-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
251-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package github-samples" >> cabal.project ; fi
252-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
253249
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package github" >> cabal.project ; fi
254250
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
255251
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package github-samples" >> cabal.project ; fi

cabal.haskell-ci

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ haddock: >=8.6
33
-- See PR #355: haddocks for GADT constructor arguments only supported from GHC 8.6
44
jobs-selection: any
55

6+
-- Package github-samples uses "include" for dependencies,
7+
-- so they are a superset.
8+
-- Dissecting this is a waste of time, so I turn -Werror=unused-packages off
9+
error-unused-packages: False
10+
611
-- Some dependencies do not allow mtl-2.3 yet, so this doesn't pass yet:
712
-- constraint-set mtl-2.3
813
-- ghc: >= 8.6

samples/github-samples.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ library
2929
build-depends:
3030
, base >=4.11 && <5
3131
-- require base-4.11 because then (<>) is in Prelude
32-
, base-compat-batteries
3332
, github
3433
, text
3534

0 commit comments

Comments
 (0)