From b36973b3e08e6d1f8a7d42a6984249486d0cebfe Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 22 Jun 2017 12:24:49 +0300 Subject: Initial commit --- malodivo.cabal | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 malodivo.cabal (limited to 'malodivo.cabal') 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 +copyright: 2017, Igor Pashev +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 + -- cgit v1.2.3