hledger/hledger/package.yaml
2015-08-12 22:49:04 -07:00

167 lines
4.1 KiB
YAML

# 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.26.98'
stability : stable
category : Finance, Console
synopsis : The main command-line interface for the hledger accounting tool.
description : |
hledger is a library and set of user tools for working
with financial data (or anything that can be tracked in a
double-entry accounting ledger.) It is a haskell port and
friendly fork of John Wiegley's Ledger. hledger provides
command-line, curses and web interfaces, and aims to be a
reliable, practical tool for daily use.
license : GPL
author : Simon Michael <simon@joyful.com>
maintainer : Simon Michael <simon@joyful.com>
github : simonmichael/hledger
homepage : http://hledger.org
bug-reports : http://hledger.org/bugs
# 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
# 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.26.98
- base >= 4.3 && < 5
- base-compat >= 0.8.1
- containers
- unordered-containers
- cmdargs >= 0.10 && < 0.11
- csv
- directory
- 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
- 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.26.98"
library:
# source-dirs: . # XXX includes Setup and uncommitted stuff
exposed-modules:
- Hledger.Cli
- Hledger.Cli.Main
- Hledger.Cli.Options
- 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.Histogram
- Hledger.Cli.Incomestatement
- Hledger.Cli.Print
- Hledger.Cli.Register
- Hledger.Cli.Stats
executables:
hledger:
source-dirs: app
main: hledger-cli.hs
# if flag(threaded)
# ghc-options: -threaded
ghc-options:
-threaded
dependencies:
- hledger == 0.26.98
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