]> Git — Sourcephile - comptalang.git/blob - cli/hcompta-cli.cabal
Correction : lens n'est pas nécessaire pour le moment
[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 homepage: http://doc.autogeree.net/hcompta
12 license: GPL
13 license-file: COPYING
14 maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
15 name: hcompta-cli
16 stability: experimental
17 synopsis: hcompta
18 tested-with: GHC==7.8.4
19 version: 0.0.0
20
21 source-repository head
22 type: git
23 location: git://git.autogeree.net/hcompta
24
25 Flag dev
26 Description: Turn on development settings.
27 Default: False
28
29 Flag library-only
30 Description: Build only library
31 Default: False
32
33 Library
34 if flag(dev)
35 cpp-options: -DDEVELOPMENT
36 ghc-options: -Wall -fno-warn-tabs --disable-optimization
37 -- -ddump-splices
38 -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
39 -- -fno-warn-type-defaults -fno-warn-orphans
40 else
41 ghc-options: -Wall -fno-warn-tabs
42 -- -O2
43 -- default-language: Haskell2010
44 exposed-modules:
45 Hcompta.CLI
46 Hcompta.CLI.Args
47 Hcompta.CLI.Command
48 Hcompta.CLI.Command.Balance
49 Hcompta.CLI.Command.Print
50 Hcompta.CLI.Context
51 Hcompta.CLI.Format.Ledger
52 Hcompta.CLI.Write
53 build-depends:
54 base >= 4.3 && < 5
55 , ansi-terminal >= 0.4 && < 0.7
56 , containers
57 , hcompta-lib
58 , HUnit
59 , pretty-show
60 -- , safe >= 0.2
61 , text
62 , transformers >= 0.4 && < 0.5
63 -- NOTE: needed for Control.Monad.Trans.Except
64
65 Executable hcompta-cli
66 if flag(library-only)
67 Buildable: False
68
69 main-is: Hcompta/CLI/Main.hs
70 hs-source-dirs: .
71 build-depends:
72 base >= 4.3 && < 5
73 , ansi-terminal >= 0.4 && < 0.7
74 , containers >= 0.5 && < 0.6
75 -- NOTE: needed for Data.Map.Strict
76 , hcompta-lib
77 , HUnit
78 , pretty-show
79 -- , safe >= 0.2
80 , text
81 , transformers >= 0.4 && < 0.5
82 -- NOTE: needed for Control.Monad.Trans.Except
83
84 ghc-options: -threaded -rtsopts -with-rtsopts=-N
85 -- -O2
86
87
88 test-suite Test
89 type: exitcode-stdio-1.0
90 main-is: Main.hs
91 hs-source-dirs: Test
92 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
93 ghc-options: -fno-warn-type-defaults -fno-warn-orphans
94 -- default-language: Haskell2010
95 build-depends:
96 hcompta-cli
97 , base >= 4.3 && < 5
98 , HUnit
99 -- , safe
100 , test-framework
101 , test-framework-hunit