]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Modification : sépare hcompta-ledger de hcompta-lib.
[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 , deepseq
82 -- , directory
83 , hcompta-lib
84 , hcompta-ledger
85 -- , HUnit
86 , io-memoize >= 1.1
87 -- NOTE: needed for System.IO.Memoize.once
88 , parsec
89 -- , safe >= 0.2
90 , semigroups
91 , strict
92 -- , template-haskell
93 , text
94 , time
95 , transformers >= 0.4 && < 0.5
96 -- NOTE: needed for Control.Monad.Trans.Except
97
98 Executable hcompta
99 extensions: NoImplicitPrelude
100 ghc-options: -Wall -fno-warn-tabs
101 if flag(threaded)
102 ghc-options: -threaded -rtsopts -with-rtsopts=-N
103 if flag(dev)
104 cpp-options: -DDEVELOPMENT
105 ghc-options:
106 else
107 ghc-options: -O2
108 if flag(prof)
109 cpp-options: -DPROFILING
110 ghc-options: -fprof-auto
111 if flag(library-only)
112 Buildable: False
113 main-is: Hcompta/CLI/Main.hs
114 hs-source-dirs: .
115 build-depends:
116 base >= 4.6 && < 5
117 , ansi-terminal >= 0.4 && < 0.7
118 , bytestring
119 , containers >= 0.5 && < 0.6
120 -- NOTE: needed for Data.Map.Strict
121 , deepseq
122 -- , directory
123 , hcompta-lib
124 , hcompta-ledger
125 -- , HUnit
126 , io-memoize >= 1.1
127 -- NOTE: needed for System.IO.Memoize.once
128 , parsec
129 -- , safe >= 0.2
130 , semigroups
131 , strict
132 -- , template-haskell
133 , text
134 , time
135 , transformers >= 0.4 && < 0.5
136 -- NOTE: needed for Control.Monad.Trans.Except
137
138
139 test-suite Test
140 type: exitcode-stdio-1.0
141 main-is: Main.hs
142 hs-source-dirs: Test
143 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
144 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
145 -- default-language: Haskell2010
146 build-depends:
147 hcompta-cli
148 , hcompta-ledger
149 , base >= 4.6 && < 5
150 , HUnit
151 -- , safe
152 , test-framework
153 , test-framework-hunit