]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Modif : CLI.Lang : utilise la classe ToDoc pour gérer les traductions.
[comptalang.git] / cli / hcompta-cli.cabal
1 author: Julien Moutinho <julm+hcompta@autogeree.net>
2 bug-reports: http://doc.autogeree.net/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/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 threaded
42 Default: True
43 Description: Enable threads.
44 Manual: True
45
46 Library
47 ghc-options: -Wall -fno-warn-tabs
48 if flag(dev)
49 cpp-options: -DDEVELOPMENT
50 ghc-options:
51 else
52 ghc-options: -O2
53 if flag(dump)
54 ghc-options: -ddump-ds -ddump-simple -ddump-splices -ddump-stg -ddump-to-file
55 -- default-language: Haskell2010
56 exposed-modules:
57 Hcompta.CLI
58 Hcompta.CLI.Args
59 Hcompta.CLI.Command
60 Hcompta.CLI.Command.Balance
61 Hcompta.CLI.Command.Print
62 Hcompta.CLI.Context
63 Hcompta.CLI.Format.Ledger
64 Hcompta.CLI.Lang
65 Hcompta.CLI.Write
66 build-depends:
67 base >= 4.3 && < 5
68 , ansi-terminal >= 0.4 && < 0.7
69 , bytestring
70 , containers
71 -- , directory
72 , hcompta-lib
73 , HUnit
74 , io-memoize >= 1.1
75 -- NOTE: needed for System.IO.Memoize.once
76 , parsec
77 -- , safe >= 0.2
78 -- , template-haskell
79 , text
80 , transformers >= 0.4 && < 0.5
81 -- NOTE: needed for Control.Monad.Trans.Except
82
83 Executable hcompta-cli
84 ghc-options: -Wall -fno-warn-tabs
85 if flag(threaded)
86 ghc-options: -threaded -rtsopts -with-rtsopts=-N
87 if flag(dev)
88 cpp-options: -DDEVELOPMENT
89 ghc-options:
90 else
91 ghc-options: -O2
92 if flag(library-only)
93 Buildable: False
94 main-is: Hcompta/CLI/Main.hs
95 hs-source-dirs: .
96 build-depends:
97 base >= 4.3 && < 5
98 , ansi-terminal >= 0.4 && < 0.7
99 , bytestring
100 , containers >= 0.5 && < 0.6
101 -- NOTE: needed for Data.Map.Strict
102 -- , directory
103 , hcompta-lib
104 , HUnit
105 , io-memoize >= 1.1
106 -- NOTE: needed for System.IO.Memoize.once
107 , parsec
108 -- , safe >= 0.2
109 -- , template-haskell
110 , text
111 , transformers >= 0.4 && < 0.5
112 -- NOTE: needed for Control.Monad.Trans.Except
113
114
115 test-suite Test
116 type: exitcode-stdio-1.0
117 main-is: Main.hs
118 hs-source-dirs: Test
119 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
120 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
121 -- default-language: Haskell2010
122 build-depends:
123 hcompta-cli
124 , base >= 4.3 && < 5
125 , HUnit
126 -- , safe
127 , test-framework
128 , test-framework-hunit