]> Git — Sourcephile - comptalang.git/blob - lib/hcompta-lib.cabal
Simplify hcompta-lib.
[comptalang.git] / lib / hcompta-lib.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 -- bug-reports: http://bug.autogeree.net/hcompta
3 build-type: Simple
4 cabal-version: >= 1.8
5 category: Finance
6 -- data-dir: data
7 -- data-files:
8 description:
9 Accounting.
10 extra-source-files:
11 extra-tmp-files:
12 -- homepage: http://doc.autogeree.net/hcompta
13 license: GPL-3
14 license-file: COPYING
15 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
16 name: hcompta-lib
17 stability: experimental
18 synopsis: Accounting software.
19 tested-with: GHC==8.0.1
20 version: 1.201610
21
22 Source-Repository head
23 location: git://git.autogeree.net/hcompta
24 type: git
25
26 Flag dev
27 Default: False
28 Description: Turn on development settings.
29 Manual: True
30
31 Flag dump
32 Default: False
33 Description: Dump some intermediate files.
34 Manual: True
35
36 Flag prof
37 Default: False
38 Description: Turn on profiling settings.
39 Manual: True
40
41 Flag threaded
42 Default: False
43 Description: Enable threads.
44 Manual: True
45
46 Library
47 extensions: NoImplicitPrelude
48 ghc-options: -Wall -fno-warn-tabs
49 if flag(dev)
50 cpp-options: -DDEVELOPMENT
51 ghc-options:
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-simpl -ddump-stg -ddump-to-file
59 -- default-language: Haskell2010
60 exposed-modules:
61 Hcompta
62 Hcompta.Account
63 Hcompta.Amount
64 Hcompta.Anchor
65 Hcompta.Balance
66 -- Hcompta.Chart
67 Hcompta.Date
68 Hcompta.GL
69 -- Hcompta.Journal
70 Hcompta.Lib.Applicative
71 Hcompta.Lib.Consable
72 Hcompta.Lib.Foldable
73 Hcompta.Lib.NonEmpty
74 Hcompta.Lib.Strict
75 Hcompta.Name
76 Hcompta.Has
77 Hcompta.Polarize
78 Hcompta.Posting
79 Hcompta.Quantity
80 -- Hcompta.Stats
81 Hcompta.Tag
82 Hcompta.Transaction
83 Hcompta.Unit
84 -- Hcompta.Lib.Parsec
85 -- Hcompta.Date.Interval
86 -- -- Hcompta.Diff
87 -- -- Hcompta.Filter
88 -- Hcompta.Filter.Amount
89 -- Hcompta.Filter.Amount.Read
90 -- Hcompta.Filter.Date.Read
91 -- -- Hcompta.Filter.Read
92 -- -- Hcompta.Filter.Reduce
93 build-depends:
94 base >= 4.6 && < 5
95 -- , ansi-terminal >= 0.4 && < 0.7
96 -- , array
97 , containers >= 0.5 && < 0.6
98 -- NOTE: needed for Data.Map.Strict
99 -- , collections-api
100 -- , collections-base-instances
101 , Decimal
102 , deepseq >= 1.4.0.0 && < 1.5
103 -- NOTE: needed for NFData (Const a b)
104 , directory
105 , filepath
106 -- , fingertree
107 -- , HUnit
108 , integer-gmp
109 , interval
110 -- , lens
111 -- , mmorph
112 -- , mtl >= 2.0
113 , mono-traversable
114 -- , parsec >= 3.1.2 && < 4
115 -- NOTE: needed for Text.Parsec.Text
116 -- , parsec-error-custom
117 -- , regex-base
118 -- , regex-tdfa
119 -- , regex-tdfa-text
120 -- , safe >= 0.2
121 , semigroups
122 , strict
123 , symantic
124 , text
125 , time
126 -- , trace
127 , transformers >= 0.4 && < 0.6
128 -- NOTE: needed for Control.Monad.Trans.Except
129 , treemap
130 , unix == 2.7.2.0
131
132 Test-Suite hcompta-test
133 type: exitcode-stdio-1.0
134 -- default-language: Haskell2010
135 extensions: NoImplicitPrelude
136 ghc-options: -Wall -fno-warn-tabs
137 -main-is Test
138 hs-source-dirs: Hcompta
139 main-is: Test.hs
140 other-modules:
141 -- Account.Test
142 Balance.Test
143 if flag(threaded)
144 ghc-options: -threaded -rtsopts -with-rtsopts=-N
145 if flag(dev)
146 cpp-options: -DDEVELOPMENT
147 ghc-options:
148 if flag(prof)
149 cpp-options: -DPROFILING
150 ghc-options: -fprof-auto
151 build-depends:
152 base >= 4.6 && < 5
153 , containers >= 0.5 && < 0.6
154 , Decimal
155 , hcompta-lib
156 , semigroups
157 , strict
158 , tasty >= 0.11
159 , tasty-hunit
160 , text
161 , transformers >= 0.4 && < 0.6
162 , treemap