]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Modif : aplatit Hcompta.{Format => } et Hcompta.{Calc => }.
[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 location: git://git.autogeree.net/hcompta
23 type: git
24
25 Flag dev
26 Default: False
27 Description: Turn on development settings.
28
29 Flag double
30 Default: False
31 Description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
32
33 Flag dump
34 Default: False
35 Description: Dump some intermediate files.
36 Manual: True
37
38 Library
39 ghc-options: -Wall -fno-warn-tabs
40 if flag(dev)
41 cpp-options: -DDEVELOPMENT
42 ghc-options:
43 -- -ddump-splices
44 -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
45 -- -fno-warn-type-defaults -fno-warn-orphans
46 else
47 ghc-options: -O2
48 if flag(double)
49 cpp-options: -DDOUBLE
50 if flag(dump)
51 ghc-options: -ddump-simple -ddump-stg -ddump-to-file
52 -- default-language: Haskell2010
53 exposed-modules:
54 Hcompta
55 Hcompta.Account
56 Hcompta.Amount
57 Hcompta.Amount.Quantity
58 Hcompta.Amount.Read
59 Hcompta.Amount.Style
60 Hcompta.Amount.Unit
61 Hcompta.Balance
62 Hcompta.Date
63 Hcompta.Date.Read
64 Hcompta.Filter
65 Hcompta.Filter.Read
66 Hcompta.Format
67 Hcompta.Format.CSV
68 Hcompta.Format.Ledger
69 Hcompta.Format.Ledger.Journal
70 Hcompta.Format.Ledger.Read
71 Hcompta.Format.Ledger.Write
72 Hcompta.Lib.Foldable
73 Hcompta.Lib.Leijen
74 Hcompta.Lib.Parsec
75 Hcompta.Lib.Path
76 Hcompta.Lib.Regex
77 Hcompta.Lib.TreeMap
78 Hcompta.Stats
79 build-depends:
80 base >= 4.3 && < 5
81 , ansi-terminal >= 0.4 && < 0.7
82 , array
83 , containers >= 0.5 && < 0.6
84 -- NOTE: needed for Data.Map.Strict
85 -- , collections-api
86 -- , collections-base-instances
87 , Decimal
88 , directory
89 , filepath
90 , HUnit
91 , integer-gmp
92 -- , lens
93 -- , mmorph
94 -- , mtl >= 2.0
95 , parsec >= 3.1.2 && < 4
96 -- NOTE: needed for Text.Parsec.Text
97 , regex-base
98 , regex-tdfa
99 , regex-tdfa-text
100 -- , safe >= 0.2
101 , semigroups
102 -- , test-framework
103 -- , test-framework-hunit
104 , text
105 , time
106 , transformers >= 0.4 && < 0.5
107 -- NOTE: needed for Control.Monad.Trans.Except
108
109 test-suite Test
110 type: exitcode-stdio-1.0
111 main-is: Main.hs
112 hs-source-dirs: Test
113 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
114 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
115 -- default-language: Haskell2010
116 build-depends:
117 hcompta-lib
118 , base >= 4.3 && < 5
119 , containers >= 0.5 && < 0.6
120 , Decimal
121 , HUnit
122 , parsec >= 3.1.2 && < 4
123 -- , safe
124 , semigroups
125 , test-framework
126 , test-framework-hunit
127 , text
128 , time
129 , transformers