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