]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Ajout : profilage du code.
[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 Flag prof
39 Default: False
40 Description: Turn on profiling settings.
41
42 Library
43 ghc-options: -Wall -fno-warn-tabs
44 if flag(dev)
45 cpp-options: -DDEVELOPMENT
46 ghc-options:
47 -- -ddump-splices
48 -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
49 -- -fno-warn-type-defaults -fno-warn-orphans
50 else
51 ghc-options: -O2
52 if flag(prof)
53 cpp-options: -DPROFILING
54 ghc-options: -fprof-auto
55 if flag(double)
56 cpp-options: -DDOUBLE
57 if flag(dump)
58 ghc-options: -ddump-simple -ddump-stg -ddump-to-file
59 -- default-language: Haskell2010
60 exposed-modules:
61 Hcompta.Account
62 Hcompta.Amount
63 Hcompta.Amount.Quantity
64 Hcompta.Amount.Read
65 Hcompta.Amount.Write
66 Hcompta.Amount.Style
67 Hcompta.Amount.Unit
68 Hcompta.Balance
69 Hcompta.Date
70 Hcompta.Date.Interval
71 Hcompta.Date.Read
72 Hcompta.Date.Write
73 Hcompta.Filter
74 Hcompta.Filter.Read
75 Hcompta.Filter.Reduce
76 Hcompta.Format.CSV
77 Hcompta.Format.Ledger
78 Hcompta.Format.Ledger.Journal
79 Hcompta.Format.Ledger.Read
80 Hcompta.Format.Ledger.Write
81 Hcompta.GL
82 Hcompta.Lib.Foldable
83 Hcompta.Lib.Interval
84 Hcompta.Lib.Interval.Sieve
85 Hcompta.Lib.Leijen
86 Hcompta.Lib.Map.Strict
87 Hcompta.Lib.Parsec
88 Hcompta.Lib.Path
89 Hcompta.Lib.Regex
90 Hcompta.Lib.TreeMap
91 build-depends:
92 base >= 4.7 && < 5
93 , ansi-terminal >= 0.4 && < 0.7
94 , array
95 , containers >= 0.5 && < 0.6
96 -- NOTE: needed for Data.Map.Strict
97 -- , collections-api
98 -- , collections-base-instances
99 , Decimal
100 , directory
101 , filepath
102 , fingertree
103 , HUnit
104 , integer-gmp
105 -- , lens
106 -- , mmorph
107 -- , mtl >= 2.0
108 , parsec >= 3.1.2 && < 4
109 -- NOTE: needed for Text.Parsec.Text
110 , regex-base
111 , regex-tdfa
112 , regex-tdfa-text
113 -- , safe >= 0.2
114 , semigroups
115 , test-framework
116 , test-framework-hunit
117 , text
118 , time
119 , transformers >= 0.4 && < 0.5
120 -- NOTE: needed for Control.Monad.Trans.Except
121
122 test-suite Test
123 type: exitcode-stdio-1.0
124 main-is: Main.hs
125 hs-source-dirs: Test
126 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
127 ghc-options: -fno-warn-type-defaults -fno-warn-orphans -fno-warn-tabs
128 -- default-language: Haskell2010
129 build-depends:
130 hcompta-lib
131 , base >= 4.7 && < 5
132 , containers >= 0.5 && < 0.6
133 , Decimal
134 , HUnit
135 , parsec >= 3.1.2 && < 4
136 -- , safe
137 , semigroups
138 , test-framework
139 , test-framework-hunit
140 , text
141 , time
142 , transformers