@@ -41,6 +41,7 @@ flag maintainer
4141--------------------------------------------------------------------------------
4242flag tutorial
4343 description: Build the tutorial binary (useful for profiling).
44+ manual: True
4445 default: False
4546
4647--------------------------------------------------------------------------------
@@ -54,11 +55,11 @@ library
5455
5556 hs-source-dirs: src
5657 default-language: Haskell2010
57− ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns
58− ghc-prof-options: -prof -auto-all
58+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
5959
6060 if flag(maintainer)
6161 ghc-options: -Werror
62+ ghc-prof-options: -prof -auto-all
6263
6364 build-depends: base >= 4.6 && < 5.0
6465 , bytestring >= 0.10 && < 0.11
@@ -71,8 +72,11 @@ executable tutorial
7172 default-language: Haskell2010
7273 hs-source-dirs: bin
7374 main-is: tutorial.hs
74− ghc-options: -O2 -Wall -Werror -rtsopts
75− ghc-prof-options: -fprof-auto-top -fprof-cafs
75+ ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
76+
77+ if flag(maintainer)
78+ ghc-options: -Werror
79+ ghc-prof-options: -fprof-auto-top -fprof-cafs
7680
7781 if !flag(tutorial)
7882 buildable: False
@@ -87,7 +91,11 @@ test-suite test
8791 default-language: Haskell2010
8892 hs-source-dirs: test
8993 main-is: test.hs
90− ghc-options: -O2 -Wall -Werror
94+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
95+
96+ if flag(maintainer)
97+ ghc-options: -Werror
98+
9199 build-depends: base
92100 , QuickCheck >= 2.7 && < 3.0
93101 , bytestring