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