on master help sign in
If built with -fdeveloper, be strict.
6277ad0Bryan O'Sullivan
text.cabal+6
@@ -14,6 +14,10 @@ build-type: Simple
14cabal-version: >= 1.2
14cabal-version: >= 1.2
15extra-source-files: README
15extra-source-files: README
16
16
17+flag developer
18+ description: operate in developer mode
19+ default: False
20+
17library
21library
18 exposed-modules:
22 exposed-modules:
19 Data.Text
23 Data.Text
@@ -57,3 +61,5 @@ library
57 ghc-options: -Wall -funbox-strict-fields -O2
61 ghc-options: -Wall -funbox-strict-fields -O2
58 if impl(ghc >= 6.8)
62 if impl(ghc >= 6.8)
59 ghc-options: -fwarn-tabs
63 ghc-options: -fwarn-tabs
64+ if flag(developer)
65+ ghc-options: -Werror