]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
WIP : Format.Ledger.Read : Model.Transaction.Posting
[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:
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 -O0 -ddump-splices
37 -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
38 -- -fno-warn-type-defaults -fno-warn-orphans
39 else
40 ghc-options: -Wall -fno-warn-tabs -O2
41 if flag(double)
42 cpp-options: -DDOUBLE
43 -- default-language: Haskell2010
44 exposed-modules:
45 Hcompta
46 Hcompta.Calc
47 Hcompta.Calc.Balance
48 Hcompta.Calc.Print
49 Hcompta.Calc.Register
50 Hcompta.Calc.Stats
51 Hcompta.Format
52 Hcompta.Format.CSV
53 Hcompta.Format.Ledger
54 Hcompta.Format.Ledger.Journal
55 Hcompta.Format.Ledger.Read
56 Hcompta.Lib.Regex
57 Hcompta.Model
58 Hcompta.Model.Account
59 Hcompta.Model.Amount
60 Hcompta.Model.Amount.Conversion
61 Hcompta.Model.Amount.Conversion.Historical
62 Hcompta.Model.Amount.Quantity
63 Hcompta.Model.Amount.Style
64 Hcompta.Model.Amount.Unit
65 Hcompta.Model.Date
66 Hcompta.Model.Filter
67 Hcompta.Model.Transaction
68 Hcompta.Model.Transaction.Periodic
69 Hcompta.Model.Transaction.Posting
70 Hcompta.Model.Transaction.Tag
71 build-depends:
72 base >= 4.3 && < 5
73 , array
74 , containers
75 , Decimal
76 , filepath
77 , HUnit
78 , parsec
79 , regex-tdfa
80 , safe >= 0.2
81 , time
82
83 test-suite Test
84 type: exitcode-stdio-1.0
85 main-is: Main.hs
86 hs-source-dirs: Test
87 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
88 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
89 -- default-language: Haskell2010
90 build-depends:
91 hcompta-lib
92 , base >= 4.3 && < 5
93 , containers
94 , Decimal
95 , HUnit
96 , parsec
97 , safe
98 , test-framework
99 , test-framework-hunit