]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Ajout : Hcompta.CLI
[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 , transformers
61
62 Executable hcompta-cli
63 if flag(library-only)
64 Buildable: False
65
66 main-is: Hcompta/CLI/Main.hs
67 hs-source-dirs: .
68 build-depends:
69 base >= 4.3 && < 5
70 , ansi-terminal >= 0.4.0
71 , containers
72 , hcompta-lib
73 , HUnit
74 , pretty-show
75 , safe >= 0.2
76 , transformers
77
78 ghc-options: -threaded -rtsopts -with-rtsopts=-N
79 -- -O2
80
81
82 test-suite Test
83 type: exitcode-stdio-1.0
84 main-is: Main.hs
85 hs-source-dirs: Test
86 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
87 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
88 -- default-language: Haskell2010
89 build-depends:
90 hcompta-cli
91 , base >= 4.3 && < 5
92 , HUnit
93 , safe
94 , test-framework
95 , test-framework-hunit