]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Polissage : GNUmakefile : hlint : affiche l’emplacement du rapport.
[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 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 ghc-options: -Wall -fno-warn-tabs
52 if flag(dev)
53 cpp-options: -DDEVELOPMENT
54 ghc-options:
55 else
56 ghc-options: -O2
57 if flag(dump)
58 ghc-options: -ddump-ds -ddump-simpl -ddump-splices -ddump-stg -ddump-to-file
59 if flag(prof)
60 cpp-options: -DPROFILING
61 ghc-options: -fprof-auto
62 -- default-language: Haskell2010
63 exposed-modules:
64 Hcompta.CLI.Args
65 Hcompta.CLI.Command
66 Hcompta.CLI.Command.Balance
67 Hcompta.CLI.Command.GL
68 Hcompta.CLI.Command.Journal
69 Hcompta.CLI.Context
70 Hcompta.CLI.Format.Ledger
71 Hcompta.CLI.Lang
72 Hcompta.CLI.Write
73 build-depends:
74 base >= 4.3 && < 5
75 , ansi-terminal >= 0.4 && < 0.7
76 , bytestring
77 , containers
78 -- , directory
79 , hcompta-lib
80 -- , HUnit
81 , io-memoize >= 1.1
82 -- NOTE: needed for System.IO.Memoize.once
83 , parsec
84 -- , safe >= 0.2
85 , strict
86 -- , template-haskell
87 , text
88 , time
89 , transformers >= 0.4 && < 0.5
90 -- NOTE: needed for Control.Monad.Trans.Except
91
92 Executable hcompta-cli
93 ghc-options: -Wall -fno-warn-tabs
94 if flag(threaded)
95 ghc-options: -threaded -rtsopts -with-rtsopts=-N
96 if flag(dev)
97 cpp-options: -DDEVELOPMENT
98 ghc-options:
99 else
100 ghc-options: -O2
101 if flag(prof)
102 cpp-options: -DPROFILING
103 ghc-options: -fprof-auto
104 if flag(library-only)
105 Buildable: False
106 main-is: Hcompta/CLI/Main.hs
107 hs-source-dirs: .
108 build-depends:
109 base >= 4.3 && < 5
110 , ansi-terminal >= 0.4 && < 0.7
111 , bytestring
112 , containers >= 0.5 && < 0.6
113 -- NOTE: needed for Data.Map.Strict
114 -- , directory
115 , hcompta-lib
116 -- , HUnit
117 , io-memoize >= 1.1
118 -- NOTE: needed for System.IO.Memoize.once
119 , parsec
120 -- , safe >= 0.2
121 , strict
122 -- , template-haskell
123 , text
124 , time
125 , transformers >= 0.4 && < 0.5
126 -- NOTE: needed for Control.Monad.Trans.Except
127
128
129 test-suite Test
130 type: exitcode-stdio-1.0
131 main-is: Main.hs
132 hs-source-dirs: Test
133 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
134 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
135 -- default-language: Haskell2010
136 build-depends:
137 hcompta-cli
138 , base >= 4.3 && < 5
139 , HUnit
140 -- , safe
141 , test-framework
142 , test-framework-hunit