]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Ajout : CLI.Command.{Journals,Stats,Tags}.
[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 extra-source-files:
12 -- i18n/en.msg
13 -- i18n/fr.msg
14 homepage: http://doc.autogeree.net/hcompta
15 license: GPL
16 license-file: COPYING
17 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
18 name: hcompta-cli
19 stability: experimental
20 synopsis: hcompta
21 tested-with: GHC==7.8.4
22 version: 0.0.0
23
24 source-repository head
25 type: git
26 location: git://git.autogeree.net/hcompta
27
28 Flag dev
29 Description: Turn on development settings.
30 Default: False
31
32 Flag dump
33 Default: False
34 Description: Dump some intermediate files.
35 Manual: True
36
37 Flag library-only
38 Description: Build only library.
39 Default: False
40
41 Flag prof
42 Default: False
43 Description: Turn on profiling settings.
44
45 Flag threaded
46 Default: True
47 Description: Enable threads.
48 Manual: True
49
50 Library
51 ghc-options: -Wall -fno-warn-tabs
52 if flag(dev)
53 cpp-options: -DDEVELOPMENT
54 ghc-options:
55 else
56 ghc-options: -O2
57 if flag(dump)
58 ghc-options: -ddump-ds -ddump-simpl -ddump-splices -ddump-stg -ddump-to-file
59 if flag(prof)
60 cpp-options: -DPROFILING
61 ghc-options: -fprof-auto
62 -- default-language: Haskell2010
63 exposed-modules:
64 Hcompta.CLI.Args
65 Hcompta.CLI.Command
66 Hcompta.CLI.Command.Balance
67 Hcompta.CLI.Command.GL
68 Hcompta.CLI.Command.Journal
69 Hcompta.CLI.Command.Journals
70 Hcompta.CLI.Command.Stats
71 Hcompta.CLI.Context
72 Hcompta.CLI.Format.Ledger
73 Hcompta.CLI.Lang
74 Hcompta.CLI.Write
75 build-depends:
76 base >= 4.3 && < 5
77 , ansi-terminal >= 0.4 && < 0.7
78 , bytestring
79 , containers
80 -- , directory
81 , hcompta-lib
82 -- , HUnit
83 , io-memoize >= 1.1
84 -- NOTE: needed for System.IO.Memoize.once
85 , parsec
86 -- , safe >= 0.2
87 , strict
88 -- , template-haskell
89 , text
90 , time
91 , transformers >= 0.4 && < 0.5
92 -- NOTE: needed for Control.Monad.Trans.Except
93
94 Executable hcompta-cli
95 ghc-options: -Wall -fno-warn-tabs
96 if flag(threaded)
97 ghc-options: -threaded -rtsopts -with-rtsopts=-N
98 if flag(dev)
99 cpp-options: -DDEVELOPMENT
100 ghc-options:
101 else
102 ghc-options: -O2
103 if flag(prof)
104 cpp-options: -DPROFILING
105 ghc-options: -fprof-auto
106 if flag(library-only)
107 Buildable: False
108 main-is: Hcompta/CLI/Main.hs
109 hs-source-dirs: .
110 build-depends:
111 base >= 4.3 && < 5
112 , ansi-terminal >= 0.4 && < 0.7
113 , bytestring
114 , containers >= 0.5 && < 0.6
115 -- NOTE: needed for Data.Map.Strict
116 -- , directory
117 , hcompta-lib
118 -- , HUnit
119 , io-memoize >= 1.1
120 -- NOTE: needed for System.IO.Memoize.once
121 , parsec
122 -- , safe >= 0.2
123 , strict
124 -- , template-haskell
125 , text
126 , time
127 , transformers >= 0.4 && < 0.5
128 -- NOTE: needed for Control.Monad.Trans.Except
129
130
131 test-suite Test
132 type: exitcode-stdio-1.0
133 main-is: Main.hs
134 hs-source-dirs: Test
135 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
136 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
137 -- default-language: Haskell2010
138 build-depends:
139 hcompta-cli
140 , base >= 4.3 && < 5
141 , HUnit
142 -- , safe
143 , test-framework
144 , test-framework-hunit