]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Modif : Format.Ledger.Write.Error_invalid_{day => date}.
[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: -dump-splice
46 else
47 ghc-options: -O2
48 if flag(dump)
49 ghc-options: -ddump-simple -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.Lib.Shakespeare.Leijen
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 , pretty-show
73 -- , safe >= 0.2
74 , shakespeare
75 , template-haskell
76 , text
77 , transformers >= 0.4 && < 0.5
78 -- NOTE: needed for Control.Monad.Trans.Except
79
80 Executable hcompta-cli
81 ghc-options: -Wall -fno-warn-tabs
82 ghc-options: -threaded -rtsopts -with-rtsopts=-N
83 if flag(dev)
84 cpp-options: -DDEVELOPMENT
85 ghc-options:
86 else
87 ghc-options: -O2
88 if flag(library-only)
89 Buildable: False
90 main-is: Hcompta/CLI/Main.hs
91 hs-source-dirs: .
92 build-depends:
93 base >= 4.3 && < 5
94 , ansi-terminal >= 0.4 && < 0.7
95 , bytestring
96 , containers >= 0.5 && < 0.6
97 -- NOTE: needed for Data.Map.Strict
98 , directory
99 , hcompta-lib
100 , HUnit
101 , io-memoize >= 1.1
102 -- NOTE: needed for System.IO.Memoize.once
103 , parsec
104 , pretty-show
105 -- , safe >= 0.2
106 , shakespeare
107 , template-haskell
108 , text
109 , transformers >= 0.4 && < 0.5
110 -- NOTE: needed for Control.Monad.Trans.Except
111
112
113 test-suite Test
114 type: exitcode-stdio-1.0
115 main-is: Main.hs
116 hs-source-dirs: Test
117 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
118 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
119 -- default-language: Haskell2010
120 build-depends:
121 hcompta-cli
122 , base >= 4.3 && < 5
123 , HUnit
124 -- , safe
125 , test-framework
126 , test-framework-hunit