@@ -20,6 +20,10 @@ source-repository head
2020 type: git
2121 location: https://github.com/bitemyapp/bloodhound.git
2222
23+flag Validate
24+ default: False
25+ manual: True
26+
2327Flag ES1
2428 Description: Run the test suite against an Elasticsearch 1.x server
2529 Default: True
@@ -30,6 +34,8 @@ Flag ES5
3034
3135library
3236 ghc-options: -Wall
37+ if flag(Validate)
38+ ghc-options: -Werror
3339 exposed-modules: Database.V1.Bloodhound
3440 Database.V1.Bloodhound.Client
3541 Database.V1.Bloodhound.Types
@@ -65,13 +71,14 @@ library
6571
6672test-suite tests
6773 ghc-options: -Wall -fno-warn-orphans
74+ if flag(Validate)
75+ ghc-options: -Werror
6876 type: exitcode-stdio-1.0
6977 main-is: tests.hs
7078 if flag(ES5)
7179 hs-source-dirs: tests/V5
7280 else
7381 hs-source-dirs: tests/V1
74−
7582 build-depends: base,
7683 bloodhound,
7784 bytestring,