]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Adapte hcompta-cli.
[comptalang.git] / cli / hcompta-cli.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 -- bug-reports: http://bug.autogeree.net/hcompta
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-tmp-files:
10 extra-source-files:
11 -- homepage: http://pad.autogeree.net/hcompta
12 license: GPL-3
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.10.3
19 version: 1.201608
20
21 Source-Repository head
22 location: git://git.autogeree.net/hcompta
23 type: git
24
25 Flag dev
26 Description: Turn on development settings.
27 Default: False
28 Manual: True
29
30 Flag dump
31 Default: False
32 Description: Dump some intermediate files.
33 Manual: True
34
35 Flag library-only
36 Description: Build only library.
37 Default: False
38 Manual: True
39
40 Flag prof
41 Default: False
42 Description: Turn on profiling settings.
43 Manual: True
44
45 Flag threaded
46 Default: True
47 Description: Enable threads.
48 Manual: True
49
50 Library
51 extensions: NoImplicitPrelude
52 ghc-options: -Wall -fno-warn-tabs
53 if flag(dev)
54 cpp-options: -DDEVELOPMENT
55 ghc-options:
56 if flag(dump)
57 ghc-options: -ddump-ds -ddump-simpl -ddump-splices -ddump-stg -ddump-to-file
58 if flag(prof)
59 cpp-options: -DPROFILING
60 ghc-options: -fprof-auto
61 -- default-language: Haskell2010
62 exposed-modules:
63 Hcompta.CLI.Args
64 Hcompta.CLI.Command
65 -- Hcompta.CLI.Command.Balance
66 -- Hcompta.CLI.Command.GL
67 -- Hcompta.CLI.Command.Journal
68 Hcompta.CLI.Command.Journals
69 -- Hcompta.CLI.Command.Stats
70 -- Hcompta.CLI.Command.Tags
71 Hcompta.CLI.Context
72 Hcompta.CLI.Env
73 Hcompta.CLI.Convert
74 Hcompta.CLI.Format
75 Hcompta.CLI.Format.JCC
76 Hcompta.CLI.Format.Ledger
77 Hcompta.CLI.Lang
78 Hcompta.CLI.Write
79 Hcompta.Expr
80 Hcompta.Expr.Bool
81 Hcompta.Expr.Dup
82 Hcompta.Expr.Eq
83 Hcompta.Expr.Fun
84 Hcompta.Expr.If
85 Hcompta.Expr.Lit
86 Hcompta.Expr.Log
87 Hcompta.Expr.Maybe
88 Hcompta.Expr.Ord
89 Hcompta.Expr.Set
90 Hcompta.Expr.Trans
91 Hcompta.Repr
92 Hcompta.Repr.Meta
93 Hcompta.Repr.Text
94 Hcompta.Repr.Text.Write
95 Hcompta.Repr.Tree
96 Hcompta.Repr.Tree.Read
97 Hcompta.Trans
98 Hcompta.Trans.Bool
99 Hcompta.Trans.Bool.Const
100 Hcompta.Type
101 build-depends:
102 base >= 4.6 && < 5
103 , ansi-terminal >= 0.4 && < 0.7
104 , bytestring
105 , containers
106 , Decimal
107 , deepseq
108 -- , directory
109 , exceptions
110 , ghc-prim
111 , hcompta-jcc
112 , hcompta-ledger
113 , hcompta-lib
114 -- , HUnit
115 , io-memoize >= 1.1
116 -- NOTE: needed for System.IO.Memoize.once
117 , monad-classes
118 , parsec
119 , parsec-error-custom
120 -- , safe >= 0.2
121 , safe-exceptions
122 , semigroups
123 , strict
124 -- , template-haskell
125 , text
126 , text-format
127 , time
128 , transformers >= 0.4 && < 0.5
129 -- NOTE: needed for Control.Monad.Trans.Except
130 , treemap
131 , walderleijen-ansi-text
132
133 Executable hcompta
134 extensions: NoImplicitPrelude
135 ghc-options: -Wall -fno-warn-tabs
136 if flag(threaded)
137 ghc-options: -threaded -rtsopts -with-rtsopts=-N
138 if flag(dev)
139 cpp-options: -DDEVELOPMENT
140 ghc-options:
141 if flag(prof)
142 cpp-options: -DPROFILING
143 ghc-options: -fprof-auto
144 if flag(library-only)
145 Buildable: False
146 main-is: Hcompta/CLI/Main.hs
147 hs-source-dirs: .
148 build-depends:
149 base >= 4.6 && < 5
150 , ansi-terminal >= 0.4 && < 0.7
151 , bytestring
152 , containers >= 0.5 && < 0.6
153 -- NOTE: needed for Data.Map.Strict
154 , Decimal
155 , deepseq
156 -- , directory
157 , ghc-prim
158 , hcompta-jcc
159 , hcompta-ledger
160 , hcompta-lib
161 -- , HUnit
162 , io-memoize >= 1.1
163 -- NOTE: needed for System.IO.Memoize.once
164 , parsec
165 , parsec-error-custom
166 -- , safe >= 0.2
167 , semigroups
168 , strict
169 -- , template-haskell
170 , text
171 , time
172 , transformers >= 0.4 && < 0.5
173 -- NOTE: needed for Control.Monad.Trans.Except
174 , treemap
175 , walderleijen-ansi-text
176
177
178 Test-Suite hcompta-cli-test
179 type: exitcode-stdio-1.0
180 -- default-language: Haskell2010
181 extensions: NoImplicitPrelude
182 ghc-options: -Wall -fno-warn-tabs
183 -main-is Test
184 hs-source-dirs: Hcompta
185 main-is: Test.hs
186 other-modules:
187 Repr.Test
188 Repr.Text
189 Repr.Text.Write
190 Repr.Text.Write.Test
191 Repr.Tree
192 Repr.Tree.Read
193 Repr.Tree.Read.Test
194 -- Repr.Meta
195 -- Repr.Meta.Test
196 Expr.Bool.Test
197 Expr.Dup.Test
198 Expr.Fun.Test
199 Expr.If.Test
200 Trans.Bool.Const.Test
201 Trans.Bool.Test
202 Trans.Test
203 if flag(threaded)
204 ghc-options: -threaded -rtsopts -with-rtsopts=-N
205 if flag(dev)
206 cpp-options: -DDEVELOPMENT
207 ghc-options:
208 if flag(prof)
209 cpp-options: -DPROFILING
210 ghc-options: -fprof-auto
211 build-depends:
212 base >= 4.6 && < 5
213 , containers >= 0.5 && < 0.6
214 , Decimal
215 , ghc-prim
216 , hcompta-lib
217 , hcompta-cli
218 , semigroups
219 , strict
220 , tasty >= 0.11
221 , tasty-hunit
222 , text
223 , text-format
224 , transformers >= 0.4 && < 0.5
225 , treemap