diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-22 12:24:49 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-24 01:51:22 +0300 |
commit | b36973b3e08e6d1f8a7d42a6984249486d0cebfe (patch) | |
tree | d14d015a3d5aa20d8a6e1effb9630643abaa847a /malodivo.cabal | |
download | molodivo-b36973b3e08e6d1f8a7d42a6984249486d0cebfe.tar.gz |
Initial commit0.0.0
Diffstat (limited to 'malodivo.cabal')
-rw-r--r-- | malodivo.cabal | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/malodivo.cabal b/malodivo.cabal new file mode 100644 index 0000000..31047be --- /dev/null +++ b/malodivo.cabal @@ -0,0 +1,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 + |