mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-12-24 00:33:22 +03:00
only use ‘-Werror’ on travis
This commit is contained in:
parent
f699958d12
commit
27f0b706b7
@ -31,9 +31,9 @@ install:
|
||||
|
||||
script:
|
||||
- case "$CABALVER" in
|
||||
"1.16") cabal configure --enable-tests -v2 ;;
|
||||
"1.18") cabal configure --enable-tests --enable-library-coverage -v2 ;;
|
||||
*) cabal configure --enable-tests --enable-coverage -v2 ;;
|
||||
"1.16") cabal configure --enable-tests -v2 -f dev ;;
|
||||
"1.18") cabal configure --enable-tests --enable-library-coverage -v2 -f dev ;;
|
||||
*) cabal configure --enable-tests --enable-coverage -v2 -f dev ;;
|
||||
esac
|
||||
- cabal build
|
||||
- cabal test --show-details=always
|
||||
|
@ -51,6 +51,11 @@ extra-source-files: AUTHORS.md
|
||||
, CHANGELOG.md
|
||||
, README.md
|
||||
|
||||
flag dev
|
||||
description: Turn on development settings.
|
||||
manual: True
|
||||
default: False
|
||||
|
||||
library
|
||||
build-depends: base >= 4.6 && < 5
|
||||
, mtl == 2.*
|
||||
@ -83,14 +88,20 @@ library
|
||||
, Text.Megaparsec.String
|
||||
, Text.Megaparsec.Text
|
||||
, Text.Megaparsec.Text.Lazy
|
||||
ghc-options: -O2 -Wall -Werror
|
||||
if flag(dev)
|
||||
ghc-options: -Wall -Werror
|
||||
else
|
||||
ghc-options: -O2 -Wall
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite old-tests
|
||||
main-is: Main.hs
|
||||
hs-source-dirs: old-tests
|
||||
type: exitcode-stdio-1.0
|
||||
ghc-options: -O2 -Wall -Werror
|
||||
if flag(dev)
|
||||
ghc-options: -Wall -Werror
|
||||
else
|
||||
ghc-options: -O2 -Wall
|
||||
other-modules: Bugs
|
||||
, Bugs.Bug2
|
||||
, Bugs.Bug6
|
||||
@ -112,7 +123,10 @@ test-suite tests
|
||||
main-is: Main.hs
|
||||
hs-source-dirs: tests
|
||||
type: exitcode-stdio-1.0
|
||||
ghc-options: -O2 -Wall -Werror
|
||||
if flag(dev)
|
||||
ghc-options: -Wall -Werror
|
||||
else
|
||||
ghc-options: -O2 -Wall
|
||||
other-modules: Char
|
||||
, Combinator
|
||||
, Error
|
||||
@ -139,7 +153,10 @@ benchmark benchmarks
|
||||
main-is: Main.hs
|
||||
hs-source-dirs: benchmarks
|
||||
type: exitcode-stdio-1.0
|
||||
ghc-options: -O2 -Wall -Werror
|
||||
if flag(dev)
|
||||
ghc-options: -O2 -Wall -Werror
|
||||
else
|
||||
ghc-options: -O2 -Wall
|
||||
build-depends: base >= 4.6 && < 5
|
||||
, megaparsec >= 4.2
|
||||
, criterion >= 0.6.2.1 && < 1.2
|
||||
|
Loading…
Reference in New Issue
Block a user