]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Correction : build-depends : containers >= 0.5
[comptalang.git] / cli / hcompta-cli.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 bug-reports: http://doc.autogeree.net/hcompta/bugs
3 build-type: Simple
4 cabal-version: >= 1.8
5 category: Finance
6 -- data-dir: data
7 -- data-files:
8 description: Hcompta command line interface.
9 extra-source-files: Test.hs
10 extra-tmp-files:
11 homepage: http://doc.autogeree.net/hcompta
12 license: GPL
13 license-file: COPYING
14 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
15 name: hcompta-cli
16 stability: experimental
17 synopsis: hcompta
18 tested-with: GHC==7.8.4
19 version: 0.0.0
20
21 source-repository head
22 type: git
23 location: git://git.autogeree.net/hcompta
24
25 Flag dev
26 Description: Turn on development settings.
27 Default: False
28
29 Flag library-only
30 Description: Build only library
31 Default: False
32
33 Library
34 if flag(dev)
35 cpp-options: -DDEVELOPMENT
36 ghc-options: -Wall -fno-warn-tabs --disable-optimization
37 -- -ddump-splices
38 -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
39 -- -fno-warn-type-defaults -fno-warn-orphans
40 else
41 ghc-options: -Wall -fno-warn-tabs
42 -- -O2
43 -- default-language: Haskell2010
44 exposed-modules:
45 Hcompta.CLI
46 Hcompta.CLI.Args
47 Hcompta.CLI.Command
48 Hcompta.CLI.Command.Balance
49 Hcompta.CLI.Command.Print
50 Hcompta.CLI.Context
51 Hcompta.CLI.Write
52 build-depends:
53 base >= 4.3 && < 5
54 , ansi-terminal >= 0.4.0
55 , containers
56 , hcompta-lib
57 , HUnit
58 , pretty-show
59 , safe >= 0.2
60 , text
61 , transformers
62
63 Executable hcompta-cli
64 if flag(library-only)
65 Buildable: False
66
67 main-is: Hcompta/CLI/Main.hs
68 hs-source-dirs: .
69 build-depends:
70 base >= 4.3 && < 5
71 , ansi-terminal >= 0.4.0
72 , containers
73 , hcompta-lib
74 , HUnit
75 , pretty-show
76 , safe >= 0.2
77 , text
78 , transformers
79
80 ghc-options: -threaded -rtsopts -with-rtsopts=-N
81 -- -O2
82
83
84 test-suite Test
85 type: exitcode-stdio-1.0
86 main-is: Main.hs
87 hs-source-dirs: Test
88 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
89 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
90 -- default-language: Haskell2010
91 build-depends:
92 hcompta-cli
93 , base >= 4.3 && < 5
94 , HUnit
95 , safe
96 , test-framework
97 , test-framework-hunit