]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Épure hcompta-lib.
[comptalang.git] / lib / hcompta-lib.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:
9 Accounting.
10 extra-source-files:
11 extra-tmp-files:
12 -- homepage: http://doc.autogeree.net/hcompta
13 license: GPL-3
14 license-file: COPYING
15 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
16 name: hcompta-lib
17 stability: experimental
18 synopsis: Accounting software.
19 tested-with: GHC==7.10.3
20 version: 1.201608
21
22 Source-Repository head
23 location: git://git.autogeree.net/hcompta
24 type: git
25
26 Flag dev
27 Default: False
28 Description: Turn on development settings.
29 Manual: True
30
31 -- Flag double
32 -- Default: False
33 -- Description: Use Double as Quantity (instead of Decimal), for testing/benchmarking.
34 -- Manual: True
35
36 Flag dump
37 Default: False
38 Description: Dump some intermediate files.
39 Manual: True
40
41 Flag prof
42 Default: False
43 Description: Turn on profiling settings.
44 Manual: True
45
46 Flag threaded
47 Default: False
48 Description: Enable threads.
49 Manual: True
50
51 Library
52 extensions: NoImplicitPrelude
53 ghc-options: -Wall -fno-warn-tabs
54 if flag(dev)
55 cpp-options: -DDEVELOPMENT
56 ghc-options:
57 if flag(prof)
58 cpp-options: -DPROFILING
59 ghc-options: -fprof-auto
60 -- if flag(double)
61 -- cpp-options: -DDOUBLE
62 if flag(dump)
63 ghc-options: -ddump-simpl -ddump-stg -ddump-to-file
64 -- default-language: Haskell2010
65 exposed-modules:
66 Hcompta
67 Hcompta.Account
68 Hcompta.Amount
69 Hcompta.Anchor
70 Hcompta.Balance
71 Hcompta.Chart
72 Hcompta.Date
73 Hcompta.GL
74 Hcompta.Journal
75 Hcompta.Lib.Applicative
76 Hcompta.Lib.Consable
77 Hcompta.Lib.Foldable
78 Hcompta.Lib.NonEmpty
79 Hcompta.Lib.Strict
80 Hcompta.Polarize
81 Hcompta.Posting
82 Hcompta.Quantity
83 Hcompta.Stats
84 Hcompta.Tag
85 Hcompta.Transaction
86 Hcompta.Unit
87 -- Hcompta.Lib.Parsec
88 -- Hcompta.Date.Interval
89 -- -- Hcompta.Diff
90 -- -- Hcompta.Filter
91 -- Hcompta.Filter.Amount
92 -- Hcompta.Filter.Amount.Read
93 -- Hcompta.Filter.Date.Read
94 -- -- Hcompta.Filter.Read
95 -- -- Hcompta.Filter.Reduce
96 build-depends:
97 base >= 4.6 && < 5
98 -- , ansi-terminal >= 0.4 && < 0.7
99 -- , array
100 , containers >= 0.5 && < 0.6
101 -- NOTE: needed for Data.Map.Strict
102 -- , collections-api
103 -- , collections-base-instances
104 , Decimal
105 , deepseq >= 1.4.0.0 && < 1.5
106 -- NOTE: needed for NFData (Const a b)
107 , directory
108 , filepath
109 -- , fingertree
110 -- , HUnit
111 , integer-gmp
112 , interval
113 -- , lens
114 -- , mmorph
115 -- , mtl >= 2.0
116 , mono-traversable
117 -- , parsec >= 3.1.2 && < 4
118 -- NOTE: needed for Text.Parsec.Text
119 -- , parsec-error-custom
120 -- , regex-base
121 -- , regex-tdfa
122 -- , regex-tdfa-text
123 -- , safe >= 0.2
124 , semigroups
125 , strict
126 , text
127 , time
128 -- , trace
129 , transformers >= 0.4 && < 0.5
130 -- NOTE: needed for Control.Monad.Trans.Except
131 , treemap
132
133 -- test-suite Test
134 -- type: exitcode-stdio-1.0
135 -- main-is: Main.hs
136 -- hs-source-dirs: Test
137 -- ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
138 -- ghc-options: -fno-warn-type-defaults -fno-warn-orphans -fno-warn-tabs
139 -- -- default-language: Haskell2010
140 -- build-depends:
141 -- hcompta-lib
142 -- , base >= 4.6 && < 5
143 -- , containers >= 0.5 && < 0.6
144 -- , Decimal
145 -- , HUnit
146 -- , parsec >= 3.1.2 && < 4
147 -- -- , safe
148 -- , semigroups
149 -- , strict
150 -- , test-framework
151 -- , test-framework-hunit
152 -- , text
153 -- , time
154 -- , transformers
155
156 Test-Suite hcompta-test
157 type: exitcode-stdio-1.0
158 -- default-language: Haskell2010
159 extensions: NoImplicitPrelude
160 ghc-options: -Wall -fno-warn-tabs
161 -main-is Test
162 hs-source-dirs: Hcompta
163 main-is: Test.hs
164 other-modules:
165 Account.Test
166 Balance.Test
167 if flag(threaded)
168 ghc-options: -threaded -rtsopts -with-rtsopts=-N
169 if flag(dev)
170 cpp-options: -DDEVELOPMENT
171 ghc-options:
172 if flag(prof)
173 cpp-options: -DPROFILING
174 ghc-options: -fprof-auto
175 build-depends:
176 base >= 4.6 && < 5
177 , containers >= 0.5 && < 0.6
178 , Decimal
179 , hcompta-lib
180 , semigroups
181 , strict
182 , tasty >= 0.11
183 , tasty-hunit
184 , text
185 , transformers >= 0.4 && < 0.5
186 , treemap