]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Fix balance tests to use new TreeMap.
[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.24
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==8.0.1
20 version: 3.201701
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 dump
32 Default: False
33 Description: Dump some intermediate files.
34 Manual: True
35
36 Flag prof
37 Default: False
38 Description: Turn on profiling settings.
39 Manual: True
40
41 Flag threaded
42 Default: False
43 Description: Enable threads.
44 Manual: True
45
46 Library
47 default-extensions:
48 NoImplicitPrelude
49 BangPatterns
50 DeriveDataTypeable
51 FlexibleContexts
52 FlexibleInstances
53 GeneralizedNewtypeDeriving
54 MultiParamTypeClasses
55 NamedFieldPuns
56 OverloadedStrings
57 RecordWildCards
58 ScopedTypeVariables
59 TupleSections
60 TypeApplications
61 TypeFamilies
62 TypeOperators
63 ghc-options: -Wall -fno-warn-tabs
64 if flag(dev)
65 cpp-options: -DDEVELOPMENT
66 ghc-options:
67 if flag(prof)
68 cpp-options: -DPROFILING
69 ghc-options: -fprof-auto
70 -- if flag(double)
71 -- cpp-options: -DDOUBLE
72 if flag(dump)
73 ghc-options: -ddump-simpl -ddump-stg -ddump-to-file
74 default-language: Haskell2010
75 exposed-modules:
76 Hcompta
77 Hcompta.Account
78 Hcompta.Amount
79 Hcompta.Balance
80 Hcompta.Date
81 Hcompta.GL
82 Hcompta.Has
83 Hcompta.Journal
84 Hcompta.Lib.Applicative
85 Hcompta.Lib.Consable
86 Hcompta.Lib.Foldable
87 Hcompta.Lib.NonEmpty
88 Hcompta.Lib.Strict
89 Hcompta.Name
90 Hcompta.Polarize
91 Hcompta.Posting
92 Hcompta.Quantity
93 Hcompta.Tag
94 Hcompta.Transaction
95 Hcompta.Unit
96 -- Hcompta.Chart
97 -- Hcompta.Stats
98 -- Hcompta.Lib.Parsec
99 -- Hcompta.Date.Interval
100 -- Hcompta.Diff
101 -- Hcompta.Filter
102 -- Hcompta.Filter.Amount
103 -- Hcompta.Filter.Amount.Read
104 -- Hcompta.Filter.Date.Read
105 -- Hcompta.Filter.Read
106 -- Hcompta.Filter.Reduce
107 build-depends:
108 base >= 4.6 && < 5
109 , containers >= 0.5 && < 0.6
110 -- NOTE: needed for Data.Map.Strict
111 , Decimal
112 , deepseq >= 1.4.0.0 && < 1.5
113 -- NOTE: needed for NFData (Const a b)
114 , directory
115 , filepath
116 -- , integer-gmp
117 , mono-traversable
118 , semigroups
119 , strict
120 , text
121 , time
122 , transformers >= 0.4 && < 0.6
123 -- NOTE: needed for Control.Monad.Trans.Except
124 , treemap
125 , unix >= 2.7.2.0
126 -- , symantic
127 -- , trace
128 -- , ansi-terminal >= 0.4 && < 0.7
129 -- , array
130 -- , collections-api
131 -- , collections-base-instances
132 -- , fingertree
133 -- , HUnit
134 -- , interval
135 -- , lens
136 -- , mmorph
137 -- , mtl >= 2.0
138 -- , parsec >= 3.1.2 && < 4
139 -- NOTE: needed for Text.Parsec.Text
140 -- , parsec-error-custom
141 -- , regex-base
142 -- , regex-tdfa
143 -- , regex-tdfa-text
144 -- , safe >= 0.2
145
146 Test-Suite hcompta-test
147 type: exitcode-stdio-1.0
148 default-language: Haskell2010
149 default-extensions: NoImplicitPrelude
150 ghc-options: -Wall -fno-warn-tabs
151 -main-is Test
152 hs-source-dirs: Hcompta
153 main-is: Test.hs
154 other-modules:
155 -- Account.Test
156 Balance.Test
157 if flag(threaded)
158 ghc-options: -threaded -rtsopts -with-rtsopts=-N
159 if flag(dev)
160 cpp-options: -DDEVELOPMENT
161 ghc-options:
162 if flag(prof)
163 cpp-options: -DPROFILING
164 ghc-options: -fprof-auto
165 build-depends:
166 base >= 4.6 && < 5
167 , containers >= 0.5 && < 0.6
168 , Decimal
169 , hcompta-lib
170 , mono-traversable
171 , semigroups
172 , strict
173 , tasty >= 0.11
174 , tasty-hunit
175 , text
176 , transformers >= 0.4 && < 0.6
177 , treemap