aboutsummaryrefslogtreecommitdiff
path: root/malodivo.cabal
blob: 31047be83bedf33cd3ba94d79a9f2044aa8e1d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: malodivo
version: 0.0.0
synopsis: Budget planning in the Kingdom of Malodivo
description: Once upon a time, in a galaxy far, far away,
  where no man has gone before.
license: PublicDomain
license-file: LICENSE
author: Igor Pashev
maintainer: Igor Pashev <pashev.igor@gmail.com>
copyright: 2017, Igor Pashev <pashev.igor@gmail.com>
category: Math, Finance, Utils
build-type: Custom
cabal-version: >= 1.24
extra-source-files:
  ChangeLog.md
  README.md
  doc/plot.md
  sample/*.json

custom-setup
  setup-depends:
      base >= 4.9 && < 5
    , Cabal
    , cabal-doctest >= 1.0.2

test-suite doctests
  type: exitcode-stdio-1.0
  main-is: doctests.hs
  build-depends:
      base
    , doctest >= 0.11.1
    , bytestring
  ghc-options: -Wall
  hs-source-dirs: test
  default-language: Haskell2010

flag cmd
  description: Build the command-line utility.
  default: True

library
  default-language: Haskell2010
  ghc-options: -Wall
  hs-source-dirs: lib
  build-depends:
      base >= 4.9 && < 5
    , aeson
    , hashable
    , text
    , unordered-containers
  exposed-modules:
    Malodivo.Budget
    Malodivo.Types.Bill
    Malodivo.Types.District
    Malodivo.Types.Ministry

executable malodivo
  default-language: Haskell2010
  ghc-options: -Wall -static
  hs-source-dirs: cmd
  main-is: Main.hs
  if flag(cmd)
    build-depends:
        base >= 4.9 && < 5
      , aeson
      , bytestring
      , docopt
      , interpolatedstring-perl6
      , malodivo
      , unordered-containers
  else
    buildable: False