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