on master help sign in
Fix .cabal files

- Add source repos - Remove -threaded for library (in accordance with cabal check recommendation) - Copy LICENSE to test package (Fix cabal check error) - Add proper other-modules to test executables (Fixes #88)

commit7ca5927baa6be571a7876b233933dde2b7615cb0 authorLennart Spitzner <lsp@informatik.uni-kiel.de> dateSat 12 Mar 2016, 00:56 (11 years ago) parent6c39746
3 files changed+52−3
test/LICENSE+31 test/vty-examples.cabal+15−1 vty.cabal+6−2
test/LICENSEnew file+31
@@ -0,0 +1,31 @@
1+Copyright Stefan O'Rear 2006, Corey O'Connor 2008, Corey O'Connor 2009
2+
3+All rights reserved.
4+
5+Redistribution and use in source and binary forms, with or without
6+modification, are permitted provided that the following conditions are met:
7+
8+ * Redistributions of source code must retain the above copyright
9+ notice, this list of conditions and the following disclaimer.
10+
11+ * Redistributions in binary form must reproduce the above
12+ copyright notice, this list of conditions and the following
13+ disclaimer in the documentation and/or other materials provided
14+ with the distribution.
15+
16+ * Neither the name of Stefan O'Rear nor the names of other
17+ contributors may be used to endorse or promote products derived
18+ from this software without specific prior written permission.
19+
20+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31+
test/vty-examples.cabal+15−1
@@ -1,7 +1,7 @@
11name: vty-examples
22version: 5.4.1
33license: BSD3
4−license-file: ../LICENSE
4+license-file: LICENSE
55author: AUTHORS
66maintainer: Corey O'Connor (coreyoconnor@gmail.com)
77homepage: https://github.com/coreyoconnor/vty
@@ -20,6 +20,10 @@ description:
2020cabal-version: >= 1.18.0
2121build-type: Simple
2222
23+source-repository head
24+ type: git
25+ location: https://github.com/coreyoconnor/vty.git
26+
2327executable vty-interactive-terminal-test
2428 main-is: interactive_terminal_test.hs
2529
@@ -44,6 +48,9 @@ executable vty-interactive-terminal-test
4448 utf8-string,
4549 vector
4650
51+ other-modules: Verify.Data.Terminfo.Parse
52+ Verify
53+
4754executable vty-event-echo
4855 main-is: EventEcho.hs
4956
@@ -113,3 +120,10 @@ executable vty-benchmark
113120 utf8-string,
114121 vector
115122
123+ other-modules: BenchImageFuzz
124+ BenchNoDiffOpt
125+ BenchRenderChar
126+ BenchVerticalScroll
127+ Verify.Graphics.Vty.Image
128+ Verify.Graphics.Vty.Attributes
129+
vty.cabal+6−2
@@ -43,6 +43,10 @@ data-files: README.md,
4343 LICENSE
4444tested-with: GHC >= 7.6.2
4545
46+source-repository head
47+ type: git
48+ location: https://github.com/coreyoconnor/vty.git
49+
4650library
4751 default-language: Haskell2010
4852 build-depends: base >= 4 && < 5,
@@ -113,9 +117,9 @@ library
113117 default-extensions: ScopedTypeVariables
114118 ForeignFunctionInterface
115119
116− ghc-options: -O2 -funbox-strict-fields -threaded -Wall -fspec-constr -fspec-constr-count=10
120+ ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
117121
118− ghc-prof-options: -O2 -funbox-strict-fields -threaded -caf-all -Wall -fspec-constr -fspec-constr-count=10
122+ ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
119123
120124 cc-options: -O2
121125