]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Ajout : Hcompta.Chart.
[comptalang.git] / cli / hcompta-cli.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 bug-reports: http://doc.autogeree.net/coop/hcompta/bugs
3 build-type: Simple
4 cabal-version: >= 1.8
5 category: Finance
6 -- data-dir: data
7 -- data-files:
8 description: Hcompta command line interface.
9 extra-source-files: Test.hs
10 extra-tmp-files:
11 extra-source-files:
12 -- i18n/en.msg
13 -- i18n/fr.msg
14 homepage: http://doc.autogeree.net/coop/hcompta
15 license: GPL
16 license-file: COPYING
17 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
18 name: hcompta-cli
19 stability: experimental
20 synopsis: hcompta
21 tested-with: GHC==7.8.4
22 version: 0.0.0
23
24 source-repository head
25 type: git
26 location: git://git.autogeree.net/hcompta
27
28 Flag dev
29 Description: Turn on development settings.
30 Default: False
31
32 Flag dump
33 Default: False
34 Description: Dump some intermediate files.
35 Manual: True
36
37 Flag library-only
38 Description: Build only library.
39 Default: False
40
41 Flag prof
42 Default: False
43 Description: Turn on profiling settings.
44
45 Flag threaded
46 Default: True
47 Description: Enable threads.
48 Manual: True
49
50 Library
51 extensions: NoImplicitPrelude
52 ghc-options: -Wall -fno-warn-tabs
53 if flag(dev)
54 cpp-options: -DDEVELOPMENT
55 ghc-options:
56 else
57 ghc-options: -O2
58 if flag(dump)
59 ghc-options: -ddump-ds -ddump-simpl -ddump-splices -ddump-stg -ddump-to-file
60 if flag(prof)
61 cpp-options: -DPROFILING
62 ghc-options: -fprof-auto
63 -- default-language: Haskell2010
64 exposed-modules:
65 Hcompta.CLI.Args
66 Hcompta.CLI.Command
67 Hcompta.CLI.Command.Balance
68 Hcompta.CLI.Command.GL
69 Hcompta.CLI.Command.Journal
70 Hcompta.CLI.Command.Journals
71 Hcompta.CLI.Command.Stats
72 Hcompta.CLI.Context
73 Hcompta.CLI.Format.Ledger
74 Hcompta.CLI.Lang
75 Hcompta.CLI.Write
76 build-depends:
77 base >= 4.6 && < 5
78 , ansi-terminal >= 0.4 && < 0.7
79 , bytestring
80 , containers
81 -- , directory
82 , hcompta-lib
83 -- , HUnit
84 , io-memoize >= 1.1
85 -- NOTE: needed for System.IO.Memoize.once
86 , parsec
87 -- , safe >= 0.2
88 , strict
89 -- , template-haskell
90 , text
91 , time
92 , transformers >= 0.4 && < 0.5
93 -- NOTE: needed for Control.Monad.Trans.Except
94
95 Executable hcompta-cli
96 extensions: NoImplicitPrelude
97 ghc-options: -Wall -fno-warn-tabs
98 if flag(threaded)
99 ghc-options: -threaded -rtsopts -with-rtsopts=-N
100 if flag(dev)
101 cpp-options: -DDEVELOPMENT
102 ghc-options:
103 else
104 ghc-options: -O2
105 if flag(prof)
106 cpp-options: -DPROFILING
107 ghc-options: -fprof-auto
108 if flag(library-only)
109 Buildable: False
110 main-is: Hcompta/CLI/Main.hs
111 hs-source-dirs: .
112 build-depends:
113 base >= 4.6 && < 5
114 , ansi-terminal >= 0.4 && < 0.7
115 , bytestring
116 , containers >= 0.5 && < 0.6
117 -- NOTE: needed for Data.Map.Strict
118 -- , directory
119 , hcompta-lib
120 -- , HUnit
121 , io-memoize >= 1.1
122 -- NOTE: needed for System.IO.Memoize.once
123 , parsec
124 -- , safe >= 0.2
125 , strict
126 -- , template-haskell
127 , text
128 , time
129 , transformers >= 0.4 && < 0.5
130 -- NOTE: needed for Control.Monad.Trans.Except
131
132
133 test-suite Test
134 type: exitcode-stdio-1.0
135 main-is: Main.hs
136 hs-source-dirs: Test
137 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
138 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
139 -- default-language: Haskell2010
140 build-depends:
141 hcompta-cli
142 , base >= 4.6 && < 5
143 , HUnit
144 -- , safe
145 , test-framework
146 , test-framework-hunit