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