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