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