]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Ajout : CLI.Command.Balance : --redundant
[comptalang.git] / lib / hcompta-lib.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: Accounting software.
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-lib
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 double
30 Description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
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 if flag(double)
44 cpp-options: -DDOUBLE
45 -- default-language: Haskell2010
46 exposed-modules:
47 Hcompta
48 Hcompta.Calc
49 Hcompta.Calc.Balance
50 Hcompta.Calc.Print
51 Hcompta.Calc.Register
52 Hcompta.Calc.Stats
53 Hcompta.Format
54 Hcompta.Format.CSV
55 Hcompta.Format.Ledger
56 Hcompta.Format.Ledger.Balance
57 Hcompta.Format.Ledger.Journal
58 Hcompta.Format.Ledger.Read
59 Hcompta.Format.Ledger.Write
60 Hcompta.Lib.Foldable
61 Hcompta.Lib.Leijen
62 Hcompta.Lib.Parsec
63 Hcompta.Lib.Path
64 Hcompta.Lib.Regex
65 Hcompta.Lib.TreeMap
66 Hcompta.Model
67 Hcompta.Model.Account
68 Hcompta.Model.Amount
69 Hcompta.Model.Amount.Quantity
70 Hcompta.Model.Amount.Style
71 Hcompta.Model.Amount.Unit
72 Hcompta.Model.Conversion
73 Hcompta.Model.Conversion.Historical
74 Hcompta.Model.Date
75 Hcompta.Model.Filter
76 Hcompta.Model.Journal
77 Hcompta.Model.Transaction
78 Hcompta.Model.Transaction.Periodic
79 Hcompta.Model.Transaction.Posting
80 Hcompta.Model.Transaction.Tag
81 build-depends:
82 base >= 4.3 && < 5
83 , ansi-terminal >= 0.4 && < 0.7
84 , array
85 , containers >= 0.5 && < 0.6
86 -- NOTE: needed for Data.Map.Strict
87 , Decimal
88 , directory
89 , filepath
90 , HUnit
91 -- , lens
92 -- , mtl >= 2.0
93 , parsec >= 3.1.2 && < 4
94 -- NOTE: needed for Text.Parsec.Text
95 , regex-tdfa
96 -- , safe >= 0.2
97 , semigroups
98 , text
99 , time
100 , transformers >= 0.4 && < 0.5
101 -- NOTE: needed for Control.Monad.Trans.Except
102
103 test-suite Test
104 type: exitcode-stdio-1.0
105 main-is: Main.hs
106 hs-source-dirs: Test
107 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
108 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
109 -- default-language: Haskell2010
110 build-depends:
111 hcompta-lib
112 , base >= 4.3 && < 5
113 , containers >= 0.5 && < 0.6
114 , Decimal
115 , HUnit
116 , parsec >= 3.1.2 && < 4
117 -- , safe
118 , semigroups
119 , test-framework
120 , test-framework-hunit
121 , text
122 , time
123 , transformers