# hpack specification for generating the cabal file # https://github.com/sol/hpack#readme # http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html # # as of hpack 0.5.4 these must be added manually: # - tested-with # - flags # - benchmarks # - conditional blocks name : hledger version : '0.27' stability : stable category : Finance, Console synopsis : Command-line interface for the hledger accounting tool description : | This is hledger’s command-line interface. Its basic function is to read a plain text file describing financial transactions and produce useful reports. hledger is a cross-platform program for tracking money, time, or any other commodity, using double-entry accounting and a simple, editable file format. It is inspired by and largely compatible with ledger(1). hledger provides command-line, curses and web interfaces, and aims to be a reliable, practical tool for daily use. license : GPL author : Simon Michael maintainer : Simon Michael github : simonmichael/hledger homepage : http://hledger.org bug-reports : http://bugs.hledger.org # XXX not supported tested-with : GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.1 extra-source-files: - CHANGES - README.md - test/test.hs data-files: - doc/hledger.1 - doc/hledger.1.txt - doc/hledger.1.info # XXX not supported flags: threaded: - default: True - description: Build with support for multithreaded execution flag: curses: - default: True - description: On POSIX systems, enable curses support for auto-detecting terminal width. flag: old-locale: - default: False - description: A compatibility flag, set automatically by cabal. If false then depend on time >= 1.5, if true then depend on time < 1.5 together with old-locale. dependencies: - hledger-lib == 0.27 - base >= 4.3 && < 5 - base-compat >= 0.8.1 - bytestring - containers - unordered-containers - cmdargs >= 0.10 && < 0.11 - csv - directory - file-embed >= 0.0.10 && < 0.1 - filepath - haskeline >= 0.6 && <= 0.8 - HUnit - mtl - mtl-compat - old-time - parsec >= 3 - process - regex-tdfa - safe >= 0.2 - split >= 0.1 && < 0.3 - temporary - text >= 0.11 - tabular >= 0.2 && < 0.3 - utf8-string >= 0.3.5 && < 1.1 - wizards == 1.0.* # XXX not supported # if impl(ghc >= 7.10) # -- ghc 7.10 requires shakespeare 2.0.2.2+ # build-depends: shakespeare >= 2.0.2.2 && < 2.1 # else # -- for older ghcs, allow shakespeare 1.x (which also requires shakespeare-text) # -- http://www.yesodweb.com/blog/2014/04/consolidation-progress # build-depends: # shakespeare >= 1.0 && < 2.1 # ,shakespeare-text >= 1.0 && < 1.2 - shakespeare >= 2.0.2.2 && < 2.1 # if !os(windows) && flag(curses) # build-depends: terminfo - terminfo # if impl(ghc >= 7.4) # dependencies: pretty-show >= 1.6.4 - pretty-show >= 1.6.4 # if flag(old-locale) # build-depends: time < 1.5, old-locale # else # build-depends: time >= 1.5 - time >= 1.5 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans cpp-options: -DVERSION="0.27" library: # source-dirs: . # XXX includes Setup and uncommitted stuff exposed-modules: - Hledger.Cli - Hledger.Cli.Main - Hledger.Cli.CliOptions - Hledger.Cli.DocFiles - Hledger.Cli.Tests - Hledger.Cli.Utils - Hledger.Cli.Version - Hledger.Cli.Add - Hledger.Cli.Accounts - Hledger.Cli.Balance - Hledger.Cli.Balancesheet - Hledger.Cli.Cashflow - Hledger.Cli.Help - Hledger.Cli.Histogram - Hledger.Cli.Incomestatement - Hledger.Cli.Info - Hledger.Cli.Man - Hledger.Cli.Print - Hledger.Cli.Register - Hledger.Cli.Stats - Text.Tabular.AsciiWide executables: hledger: source-dirs: app main: hledger-cli.hs # if flag(threaded) # ghc-options: -threaded ghc-options: -threaded dependencies: - hledger == 0.27 tests: test: source-dirs: test main: test.hs dependencies: - hledger - test-framework - test-framework-hunit # XXX not supported # benchmarks: # bench: # source-dirs: bench # main: bench.hs # other-modules: SimpleBench # dependencies: # - hledger # - criterion # - html # - timeit