summaryrefslogtreecommitdiff
path: root/penny.cabal
blob: 51d35984e6345e934ab8c4b5102da51cb0435220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
-- The penny.cabal file is generated using m4, the penny.cabal.m4
-- file, and the versions.m4 file.  The Makefile will generate
-- penny.cabal for you.

Name: penny
Version: 0.32.0.8
Cabal-version: >=1.14
Build-Type: Simple
License: BSD3
Copyright: 2012-2014 Omari Norman.
author: Omari Norman
maintainer: omari@smileystation.com
stability: Experimental
homepage: http://www.github.com/massysett/penny
bug-reports: omari@smileystation.com
Category: Console, Finance
License-File: LICENSE
tested-with: GHC ==7.4.1, GHC ==7.6.3

synopsis: Extensible double-entry accounting system

description:
  Penny is a double-entry accounting system.  You keep your records in a
  plain-text file, and Penny gives you useful reports in your UNIX shell.
  .
  For more information, please see
  .
  <http://www.github.com/massysett/penny>

extra-source-files:
    install-docs
  , README.md
  , doc/*.dot
  , doc/*.hs
  , doc/examples/*.pny
  , doc/man/*.1
  , doc/man/*.7
  , versions.m4
  , Makefile
  , current-versions.txt
  , minimum-versions.txt
  , penny.cabal.m4
  , changelog

source-repository head
  type: git
  location: git://github.com/massysett/penny.git

Library

  Build-depends:
      base >= 4.5.0.0 && < 4.7

    -- Do not try to put comments on same line as data; Cabal does
    -- not allow this.

    -- Package                  Version
    , bytestring                >= 0.9.2.1              && < 0.11
    , containers                >= 0.4.2.1              && < 0.6
    , old-locale                >= 1.0.0.4              && < 1.1
    , parsec                    >= 3.1.3                  && < 3.2
    , split                     >= 0.2.2                   && < 0.3
    , text                      >= 0.11.3.1                    && < 1.2
    , time                      >= 1.4                    && < 1.5
    , transformers              >= 0.3.0.0

    -- Omari packages
    -- Package                  Version
    , anonymous-sums            >= 0.4.0.0
    , matchers                  >= 0.18.0.0                && < 0.19
    , multiarg                  >= 0.24.0.4                && < 0.27.0.0
    , ofx                       >= 0.4.0.2                     && < 0.5
    , prednote                  >= 0.22.0.2                && < 0.23
    , rainbow                   >= 0.14.0.0                 && < 0.15.0.0
    , rainbox                   >= 0.4.0.2                 && < 0.5

    -- Other packages
    -- Package                  Version
    , action-permutations       >= 0.0.0.0     && < 0.0.0.2
    , cereal                    >= 0.3.5.2                  && < 0.5
    , contravariant             >= 0.2.0.1           && < 0.5
    , either                    >= 3.4.1                  && < 4.2
    , pretty-show               >= 1.5             && < 1.7
    , semigroups                >= 0.9.2              && < 0.14

  Exposed-modules:
      Penny
    , Penny.Brenner
    , Penny.Brenner.Clear
    , Penny.Brenner.Database
    , Penny.Brenner.Import
    , Penny.Brenner.Info
    , Penny.Brenner.Merge
    , Penny.Brenner.OFX
    , Penny.Brenner.Print
    , Penny.Brenner.Types
    , Penny.Brenner.Util
    , Penny.Cabin
    , Penny.Cabin.Balance
    , Penny.Cabin.Balance.Convert
    , Penny.Cabin.Balance.Convert.Chunker
    , Penny.Cabin.Balance.Convert.ChunkerPct
    , Penny.Cabin.Balance.Convert.Options
    , Penny.Cabin.Balance.Convert.Parser
    , Penny.Cabin.Balance.MultiCommodity
    , Penny.Cabin.Balance.MultiCommodity.Chunker
    , Penny.Cabin.Balance.MultiCommodity.Parser
    , Penny.Cabin.Balance.Util
    , Penny.Cabin.Interface
    , Penny.Cabin.Meta
    , Penny.Cabin.Options
    , Penny.Cabin.Parsers
    , Penny.Cabin.Posts
    , Penny.Cabin.Posts.Allocated
    , Penny.Cabin.Posts.BottomRows
    , Penny.Cabin.Posts.Fields
    , Penny.Cabin.Posts.Growers
    , Penny.Cabin.Posts.Chunk
    , Penny.Cabin.Posts.Meta
    , Penny.Cabin.Posts.Parser
    , Penny.Cabin.Posts.Spacers
    , Penny.Cabin.Posts.Types
    , Penny.Cabin.Row
    , Penny.Cabin.Scheme
    , Penny.Cabin.Scheme.Schemes
    , Penny.Cabin.TextFormat
    , Penny.Copper
    , Penny.Copper.Interface
    , Penny.Copper.Parsec
    , Penny.Copper.Render
    , Penny.Copper.Terminals
    , Penny.Denver
    , Penny.Denver.Diff
    , Penny.Denver.Reprint
    , Penny.Denver.Selloff
    , Penny.Denver.Reconcile
    , Penny.Liberty
    , Penny.Lincoln
    , Penny.Lincoln.Balance
    , Penny.Lincoln.Bits
    , Penny.Lincoln.Bits.DateTime
    , Penny.Lincoln.Bits.Open
    , Penny.Lincoln.Bits.Price
    , Penny.Lincoln.Bits.Qty
    , Penny.Lincoln.Builders
    , Penny.Lincoln.Ents
    , Penny.Lincoln.Equivalent
    , Penny.Lincoln.HasText
    , Penny.Lincoln.Matchers
    , Penny.Lincoln.Natural
    , Penny.Lincoln.Predicates
    , Penny.Lincoln.Predicates.Siblings
    , Penny.Lincoln.PriceDb
    , Penny.Lincoln.Queries
    , Penny.Lincoln.Queries.Siblings
    , Penny.Lincoln.Serial
    , Penny.Shield
    , Penny.Steel
    , Penny.Wheat
    , Penny.Zinc

  Other-modules:
      Paths_penny

  hs-source-dirs: lib

  if flag(incabal)
    cpp-options: -Dincabal

  ghc-options: -Wall
  if flag(debug)
    ghc-options: -auto-all -caf-all
  default-language: Haskell2010

Test-Suite penny-test
  type: exitcode-stdio-1.0
  Main-is: penny-test.hs
  other-modules:
      Copper
    , Copper.Gen.Parsers
    , Copper.Gen.Terminals
    , Copper.Parser
    , Copper.Render
    , Lincoln
  hs-source-dirs: tests
  default-language: Haskell2010

  -- For details on why penny is a dependency here, see
  -- http://stackoverflow.com/questions/6711151

  build-depends:
      penny           == 0.32.0.8
    , base            >= 4.5.0.0                              && < 4.7

    -- Packages I maintain
    , multiarg        >= 0.24.0.4                          && < 0.27.0.0
    , anonymous-sums  >= 0.4.0.0                    && < 0.5

    -- Other packages
    , QuickCheck      >= 2.6                        && < 2.7
    , random-shuffle  == 0.0.4
    , parsec          >= 3.1.3                            && < 3.2
    , semigroups      >= 0.9.2                        && < 0.14
    , text            >= 0.11.3.1                              && < 1.2
    , time            >= 1.4                              && < 1.5
    , transformers    >= 0.3.0.0                      && < 0.4

  ghc-options: -Wall

Executable penny-gibberish
  Main-is: penny-gibberish.hs
  other-modules:
      Copper.Gen.Parsers
    , Copper.Gen.Terminals
  hs-source-dirs: tests
  default-language: Haskell2010

  if flag(build-gibberish)
    build-depends:
          penny           == 0.32.0.8
        , base            >= 4.5.0.0                          && < 4.7

        -- Packages I maintain
        , multiarg        >= 0.24.0.4                      && < 0.27.0.0

        -- Other packages
        , QuickCheck      >= 2.6                    && < 2.7
        , random-shuffle  == 0.0.4
        , random          >= 1.0.0.0                        && < 1.1
        , semigroups      >= 0.9.2                    && < 0.14
        , text            >= 0.11.3.1                          && < 1.2
        , time            >= 1.4                          && < 1.5
        , transformers    >= 0.3.0.0                  && < 0.4

  else
    buildable: False

  ghc-options: -Wall

Flag build-gibberish
  Description: Build the penny-gibberish executable
  Default: False

Executable penny
  Build-depends:
      penny ==0.32.0.8
    , base >= 4.5.0.0                                         && < 4.7

  hs-source-dirs: bin
  Main-is: penny-main.hs
  Other-modules: Paths_penny
  GHC-Options: -Wall
  default-language: Haskell2010
  if flag(debug)
    GHC-Options: -rtsopts -auto-all -caf-all

  if ! flag(build-penny)
    buildable: False

Flag build-penny
  Description: Build the penny executable
  Default: True

Executable penny-selloff
  Build-depends:
      penny == 0.32.0.8
    , base >= 4.5.0.0                                         && < 4.7

  other-modules: Paths_penny
  hs-source-dirs: bin
  Main-is: penny-selloff.hs
  default-language: Haskell2010
  GHC-Options: -Wall
  if flag(debug)
    GHC-Options: -rtsopts -auto-all -caf-all

  if ! flag(build-selloff)
    buildable: False

Flag build-selloff
  Description: Build the penny-selloff executable
  Default: True

Executable penny-diff
  Build-depends:
      penny == 0.32.0.8
    , base >= 4.5.0.0                                         && < 4.7

  hs-source-dirs: bin
  Main-is: penny-diff.hs
  Other-modules: Paths_penny
  GHC-Options: -Wall
  default-language: Haskell2010
  if flag(debug)
    GHC-Options: -rtsopts -auto-all -caf-all

  if ! flag(build-diff)
    buildable: False

Flag build-diff
  Description: Build the penny-diff executable
  Default: True

Executable penny-reprint
  Build-depends:
      penny == 0.32.0.8
    , base >= 4.5.0.0                                         && < 4.7

  hs-source-dirs: bin
  main-is: penny-reprint.hs
  Other-modules: Paths_penny
  ghc-options: -Wall
  default-language: Haskell2010
  if ! flag(build-reprint)
    buildable: False

Flag build-reprint
  Description: Build the penny-reprint executable
  Default: True

Executable penny-reconcile
  Build-depends:
      penny == 0.32.0.8
    , base >= 4.5.0.0                                         && < 4.7

  hs-source-dirs: bin
  main-is: penny-reconcile.hs
  default-language: Haskell2010
  Other-modules: Paths_penny
  ghc-options: -Wall
  if ! flag(build-reconcile)
    buildable: False

Flag build-reconcile
  Description: Build the penny-reconcile executable
  Default: True

Flag debug
  Description: turns on some debugging options
  Default: False

Flag test
  Description: enables QuickCheck tests
  Default: False

Flag incabal
  Description: enables imports that only Cabal makes available
  Default: True