Cabal cleanup (#5693)

* pandoc.cabal: remove conditionals for ghc < 8.0. Support for GHC 7.10 has been dropped.
* pandoc.cabal: compile with `-Wcpp-undef` when possible
* pandoc.cabal: compile with `-fhide-source-paths` if possible
This commit is contained in:
Albert Krewinkel 2019-08-27 02:04:30 +02:00 committed by John MacFarlane
parent b446c6c448
commit cd4b8f66bb
2 changed files with 11 additions and 24 deletions

View file

@ -2,11 +2,11 @@ packages: pandoc.cabal
package pandoc
flags: +embed_data_files -trypandoc
ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Widentities -j +RTS -A32M -RTS
ghc-options: -j +RTS -A32M -RTS
package pandoc-citeproc
flags: +embed_data_files +bibutils -unicode_collation -test_citeproc -debug
ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Widentities -j +RTS -A32M -RTS
ghc-options: -j +RTS -A32M -RTS
source-repository-package
type: git

View file

@ -423,13 +423,7 @@ library
doclayout >= 0.1 && < 0.2,
ipynb >= 0.1 && < 0.2,
attoparsec >= 0.12 && < 0.14
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*,
-- basement 0.0.8 and foundation 0.0.21, transitive
-- dependencies, drop support for ghc 7.10.
basement < 0.0.8,
foundation < 0.0.21
if impl(ghc >= 8.0) && os(windows) && arch(i386)
if os(windows) && arch(i386)
build-depends: basement >= 0.0.10,
foundation >= 0.0.23
-- basement 0.0.9 won't build on 32-bit windows.
@ -450,14 +444,17 @@ library
if os(windows)
cpp-options: -D_WINDOWS
ghc-options: -Wall -fno-warn-unused-do-bind
if impl(ghc > 8.0)
ghc-options: -Wincomplete-record-updates
-Wnoncanonical-monad-instances
-Wnoncanonical-monadfail-instances
if impl(ghc > 8.4)
-Wincomplete-record-updates
-Wnoncanonical-monad-instances
-Wnoncanonical-monadfail-instances
if impl(ghc >= 8.2)
ghc-options: -Wcpp-undef
if impl(ghc >= 8.4)
ghc-options: -Wincomplete-uni-patterns
-Widentities
-Werror=missing-home-modules
-fhide-source-paths
default-language: Haskell2010
other-extensions: NoImplicitPrelude
hs-source-dirs: src
@ -621,8 +618,6 @@ library
executable pandoc
build-depends: pandoc, base >= 4.8 && < 5
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
@ -648,8 +643,6 @@ executable trypandoc
buildable: True
else
buildable: False
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
@ -664,8 +657,6 @@ benchmark weigh-pandoc
text,
weigh >= 0.0 && < 0.1,
mtl >= 2.2 && < 2.3
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
@ -703,8 +694,6 @@ test-suite test-pandoc
zip-archive >= 0.2.3.4 && < 0.5,
xml >= 1.3.12 && < 1.4,
Glob >= 0.7 && < 0.11
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
@ -776,8 +765,6 @@ benchmark benchmark-pandoc
text >= 1.1.1.0 && < 1.3,
mtl >= 2.2 && < 2.3,
criterion >= 1.0 && < 1.6
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude