git.iko.soy/typeable/cassava-streams
on trunk help sign in
Update cabal file to make hackage happy
commitb3280972b2f7c806b9db5744df6a7f31b3126371 authorPeter Jones <pjones@pmade.com> dateMon 8 Feb 2016, 14:31 (11 years ago) parent050572c
2 files changed+19−6
GNUmakefile+6−1 cassava-streams.cabal+13−5
GNUmakefile+6−1
@@ -6,7 +6,7 @@ TMP_DUMMY = $(TMPDIR)/.dummy
66STACK_OPTS = --stack-yaml=build/stack.yaml
77
88################################################################################
9−.PHONY: all test clean
9+.PHONY: all test clean release
1010
1111################################################################################
1212all: $(TMP_DUMMY)
@@ -21,3 +21,8 @@ test:
2121################################################################################
2222clean:
2323 stack $(STACK_OPTS) clean
24+
25+################################################################################
26+release:
27+ $(MAKE) clean test
28+ stack $(STACK_OPTS) upload .
cassava-streams.cabal+13−5
@@ -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