switch to hpack-generated cabal files

The hledger-lib, hledger and hledger-web cabal files are now generated
from the package.yaml files with hpack, plus some manual fixups.
This commit is contained in:
Simon Michael 2015-08-12 22:45:08 -07:00
parent b91f2b85d0
commit a9b2e5409c
3 changed files with 500 additions and 500 deletions

View File

@ -1,162 +1,154 @@
-- This file has been generated from package.yaml by hpack version 0.5.4.
--
-- see: https://github.com/sol/hpack
name: hledger-lib name: hledger-lib
version: 0.26 version: 0.26
stability: stable stability: stable
category: Finance, Console category: Finance, Console
synopsis: Core data types, parsers and utilities for the hledger accounting tool. synopsis: Core data types, parsers and utilities for the hledger accounting tool.
description: description: hledger is a library and set of user tools for working
hledger is a library and set of user tools for working
with financial data (or anything that can be tracked in a with financial data (or anything that can be tracked in a
double-entry accounting ledger.) It is a haskell port and double-entry accounting ledger.) It is a haskell port and
friendly fork of John Wiegley's Ledger. hledger provides friendly fork of John Wiegley's Ledger. hledger provides
command-line, curses and web interfaces, and aims to be a command-line, curses and web interfaces, and aims to be a
reliable, practical tool for daily use. reliable, practical tool for daily use.
license: GPL license: GPL
license-file: LICENSE license-file: LICENSE
author: Simon Michael <simon@joyful.com> author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com> maintainer: Simon Michael <simon@joyful.com>
homepage: http://hledger.org homepage: http://hledger.org
bug-reports: http://hledger.org/bugs bug-reports: http://hledger.org/bugs
tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.1
cabal-version: >= 1.10 cabal-version: >= 1.10
build-type: Simple build-type: Simple
-- data-dir: data tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.1
-- data-files:
-- extra-tmp-files: extra-source-files:
extra-source-files: CHANGES
tests/suite.hs
CHANGES
-- README
-- sample.ledger
-- sample.timelog
source-repository head source-repository head
type: git type: git
location: https://github.com/simonmichael/hledger location: https://github.com/simonmichael/hledger
flag double flag double
description: Use old Double number representation (instead of Decimal), for testing/benchmarking. manual: True
default: False default: False
manual: True description:
Use old Double number representation (instead of Decimal), for testing/benchmarking.
flag old-locale flag old-locale
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.
default: False 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.
library library
-- should set patchlevel here as in Makefile
cpp-options: -DPATCHLEVEL=0
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans
if flag(double) if flag(double)
cpp-options: -DDOUBLE cpp-options: -DDOUBLE
default-language: Haskell2010 ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
exposed-modules:
Hledger
Hledger.Data
Hledger.Data.Account
Hledger.Data.AccountName
Hledger.Data.Amount
Hledger.Data.Commodity
Hledger.Data.Dates
Hledger.Data.OutputFormat
Hledger.Data.Journal
Hledger.Data.Ledger
Hledger.Data.Posting
Hledger.Data.RawOptions
Hledger.Data.TimeLog
Hledger.Data.Transaction
Hledger.Data.Types
Hledger.Query
Hledger.Read
Hledger.Read.CsvReader
Hledger.Read.JournalReader
Hledger.Read.TimelogReader
Hledger.Reports
Hledger.Reports.ReportOptions
Hledger.Reports.BalanceHistoryReport
Hledger.Reports.BalanceReport
Hledger.Reports.EntriesReport
Hledger.Reports.MultiBalanceReports
Hledger.Reports.PostingsReport
Hledger.Reports.TransactionsReports
Hledger.Utils
Hledger.Utils.Debug
Hledger.Utils.Regex
Hledger.Utils.UTF8IOCompat
build-depends: build-depends:
base >= 4.3 && < 5 base >= 4.3 && < 5
,base-compat >= 0.8.1 , base-compat >= 0.8.1
,array , array
,blaze-markup >= 0.5.1 , blaze-markup >= 0.5.1
,bytestring , bytestring
,cmdargs >= 0.10 && < 0.11 , cmdargs >= 0.10 && < 0.11
,containers , containers
,csv , csv
-- ,data-pprint >= 0.2.3 && < 0.3 , Decimal
,Decimal , directory
,directory , filepath
,filepath , mtl
,mtl , mtl-compat
,mtl-compat , old-time
,old-time , parsec >= 3
,parsec >= 3 , regex-tdfa
,regex-tdfa , safe >= 0.2
,safe >= 0.2 , split >= 0.1 && < 0.3
,split >= 0.1 && < 0.3 , transformers >= 0.2 && < 0.5
,transformers >= 0.2 && < 0.5 , utf8-string >= 0.3.5 && < 1.1
,utf8-string >= 0.3.5 && < 1.1 , HUnit
,HUnit , pretty-show >= 1.6.4
, time >= 1.5
if impl(ghc >= 7.4) if impl(ghc >= 7.4)
build-depends: pretty-show >= 1.6.4 build-depends: pretty-show >= 1.6.4
if flag(old-locale) if flag(old-locale)
build-depends: time < 1.5, old-locale build-depends: time < 1.5, old-locale
else else
build-depends: time >= 1.5 build-depends: time >= 1.5
exposed-modules:
Hledger
Hledger.Data
Hledger.Data.Account
Hledger.Data.AccountName
Hledger.Data.Amount
Hledger.Data.Commodity
Hledger.Data.Dates
Hledger.Data.Journal
Hledger.Data.Ledger
Hledger.Data.OutputFormat
Hledger.Data.Posting
Hledger.Data.RawOptions
Hledger.Data.TimeLog
Hledger.Data.Transaction
Hledger.Data.Types
Hledger.Query
Hledger.Read
Hledger.Read.CsvReader
Hledger.Read.JournalReader
Hledger.Read.TimelogReader
Hledger.Reports
Hledger.Reports.ReportOptions
Hledger.Reports.BalanceHistoryReport
Hledger.Reports.BalanceReport
Hledger.Reports.EntriesReport
Hledger.Reports.MultiBalanceReports
Hledger.Reports.PostingsReport
Hledger.Reports.TransactionsReports
Hledger.Utils
Hledger.Utils.Debug
Hledger.Utils.Regex
Hledger.Utils.UTF8IOCompat
default-language: Haskell2010
test-suite tests test-suite tests
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: suite.hs main-is: suite.hs
hs-source-dirs: tests hs-source-dirs:
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures tests
ghc-options: -fno-warn-type-defaults -fno-warn-orphans ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
default-language: Haskell2010 build-depends:
build-depends: hledger-lib base >= 4.3 && < 5
, base >= 4.3 && < 5 , base-compat >= 0.8.1
, base-compat >= 0.8.1 , array
, array , blaze-markup >= 0.5.1
, blaze-markup >= 0.5.1 , bytestring
, cmdargs , cmdargs >= 0.10 && < 0.11
, containers , containers
, csv , csv
-- , data-pprint >= 0.2.3 && < 0.3 , Decimal
, Decimal , directory
, directory , filepath
, filepath , mtl
, HUnit , mtl-compat
, mtl , old-time
, mtl-compat , parsec >= 3
, old-time , regex-tdfa
, parsec >= 3 , safe >= 0.2
, regex-tdfa , split >= 0.1 && < 0.3
, safe , transformers >= 0.2 && < 0.5
, split , utf8-string >= 0.3.5 && < 1.1
, test-framework , HUnit
, test-framework-hunit , pretty-show >= 1.6.4
, transformers , time >= 1.5
, hledger-lib
, test-framework
, test-framework-hunit
if impl(ghc >= 7.4) if impl(ghc >= 7.4)
build-depends: pretty-show >= 1.6.4 build-depends: pretty-show >= 1.6.4
if flag(old-locale) if flag(old-locale)
build-depends: time < 1.5, old-locale build-depends: time < 1.5, old-locale
else else
build-depends: time >= 1.5 build-depends: time >= 1.5
default-language: Haskell2010
-- cf http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html
-- Additional dependencies:
-- required for make test: test-framework, test-framework-hunit
-- required for make bench: tabular-0.1

View File

@ -1,16 +1,18 @@
-- This file has been generated from package.yaml by hpack version 0.5.4.
--
-- see: https://github.com/sol/hpack
name: hledger-web name: hledger-web
version: 0.26 version: 0.26
stability: stable stability: stable
category: Finance category: Finance
synopsis: A web interface for the hledger accounting tool. synopsis: A web interface for the hledger accounting tool
description: description: hledger is a library and set of user tools for working
hledger is a library and set of user tools for working
with financial data (or anything that can be tracked in a with financial data (or anything that can be tracked in a
double-entry accounting ledger.) It is a haskell port and double-entry accounting ledger.) It is a haskell port and
friendly fork of John Wiegley's Ledger. hledger provides friendly fork of John Wiegley's Ledger. hledger provides
command-line, curses and web interfaces, and aims to be a command-line, curses and web interfaces, and aims to be a
reliable, practical tool for daily use. reliable, practical tool for daily use.
license: GPL license: GPL
license-file: LICENSE license-file: LICENSE
author: Simon Michael <simon@joyful.com> author: Simon Michael <simon@joyful.com>
@ -18,271 +20,270 @@ maintainer: Simon Michael <simon@joyful.com>
homepage: http://hledger.org homepage: http://hledger.org
bug-reports: http://hledger.org/bugs bug-reports: http://hledger.org/bugs
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.1 tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.1
cabal-version: >= 1.8 cabal-version: >= 1.10
build-type: Simple build-type: Simple
extra-tmp-files:
extra-source-files: extra-source-files:
messages/en.msg CHANGES
config/favicon.ico config/favicon.ico
config/keter.yaml config/keter.yaml
config/robots.txt config/robots.txt
config/routes config/routes
config/settings.yml config/settings.yml
static/css/bootstrap-theme.css messages/en.msg
static/css/bootstrap-theme.css.map static/css/bootstrap-theme.css
static/css/bootstrap-theme.min.css static/css/bootstrap-theme.css.map
static/css/bootstrap.css static/css/bootstrap-theme.min.css
static/css/bootstrap.css.map static/css/bootstrap.css
static/css/bootstrap.min.css static/css/bootstrap.css.map
static/fonts/glyphicons-halflings-regular.eot static/css/bootstrap.min.css
static/fonts/glyphicons-halflings-regular.svg static/fonts/glyphicons-halflings-regular.eot
static/fonts/glyphicons-halflings-regular.ttf static/fonts/glyphicons-halflings-regular.svg
static/fonts/glyphicons-halflings-regular.woff static/fonts/glyphicons-halflings-regular.ttf
static/js/bootstrap.js static/fonts/glyphicons-halflings-regular.woff
static/js/bootstrap.min.js static/hledger.css
static/js/excanvas.js static/hledger.js
static/js/excanvas.min.js static/js/bootstrap.js
static/js/jquery.cookie.js static/js/bootstrap.min.js
static/js/jquery.flot.canvas.js static/js/excanvas.js
static/js/jquery.flot.canvas.min.js static/js/excanvas.min.js
static/js/jquery.flot.categories.js static/js/jquery.cookie.js
static/js/jquery.flot.categories.min.js static/js/jquery.flot.canvas.js
static/js/jquery.flot.crosshair.js static/js/jquery.flot.canvas.min.js
static/js/jquery.flot.crosshair.min.js static/js/jquery.flot.categories.js
static/js/jquery.flot.errorbars.js static/js/jquery.flot.categories.min.js
static/js/jquery.flot.errorbars.min.js static/js/jquery.flot.crosshair.js
static/js/jquery.flot.fillbetween.js static/js/jquery.flot.crosshair.min.js
static/js/jquery.flot.fillbetween.min.js static/js/jquery.flot.errorbars.js
static/js/jquery.flot.image.js static/js/jquery.flot.errorbars.min.js
static/js/jquery.flot.image.min.js static/js/jquery.flot.fillbetween.js
static/js/jquery.flot.js static/js/jquery.flot.fillbetween.min.js
static/js/jquery.flot.min.js static/js/jquery.flot.image.js
static/js/jquery.flot.navigate.js static/js/jquery.flot.image.min.js
static/js/jquery.flot.navigate.min.js static/js/jquery.flot.js
static/js/jquery.flot.pie.js static/js/jquery.flot.min.js
static/js/jquery.flot.pie.min.js static/js/jquery.flot.navigate.js
static/js/jquery.flot.resize.js static/js/jquery.flot.navigate.min.js
static/js/jquery.flot.resize.min.js static/js/jquery.flot.pie.js
static/js/jquery.flot.selection.js static/js/jquery.flot.pie.min.js
static/js/jquery.flot.selection.min.js static/js/jquery.flot.resize.js
static/js/jquery.flot.stack.js static/js/jquery.flot.resize.min.js
static/js/jquery.flot.stack.min.js static/js/jquery.flot.selection.js
static/js/jquery.flot.symbol.js static/js/jquery.flot.selection.min.js
static/js/jquery.flot.symbol.min.js static/js/jquery.flot.stack.js
static/js/jquery.flot.threshold.js static/js/jquery.flot.stack.min.js
static/js/jquery.flot.threshold.min.js static/js/jquery.flot.symbol.js
static/js/jquery.flot.time.js static/js/jquery.flot.symbol.min.js
static/js/jquery.flot.time.min.js static/js/jquery.flot.threshold.js
static/js/jquery.flot.tooltip.js static/js/jquery.flot.threshold.min.js
static/js/jquery.flot.tooltip.min.js static/js/jquery.flot.time.js
static/js/jquery.hotkeys.js static/js/jquery.flot.time.min.js
static/js/jquery.js static/js/jquery.flot.tooltip.js
static/js/jquery.min.js static/js/jquery.flot.tooltip.min.js
static/js/jquery.url.js static/js/jquery.hotkeys.js
static/js/typeahead.bundle.js static/js/jquery.js
static/js/typeahead.bundle.min.js static/js/jquery.min.js
static/hledger.css static/js/jquery.url.js
static/hledger.js static/js/typeahead.bundle.js
templates/default-layout-wrapper.hamlet static/js/typeahead.bundle.min.js
templates/default-layout.hamlet templates/default-layout-wrapper.hamlet
templates/homepage.hamlet templates/default-layout.hamlet
templates/homepage.julius templates/homepage.hamlet
templates/homepage.lucius templates/homepage.julius
templates/normalize.lucius templates/homepage.lucius
tests/HomeTest.hs templates/normalize.lucius
tests/TestImport.hs
CHANGES
source-repository head source-repository head
type: git type: git
location: https://github.com/simonmichael/hledger location: https://github.com/simonmichael/hledger
flag threaded flag threaded
Description: Build with support for multithreaded execution. default: True
Default: True description:
Build with support for multithreaded execution.
flag dev flag dev
Description: Turn on development settings, like auto-reload templates. default: False
Default: False description:
Turn on development settings, like auto-reload templates.
flag library-only flag library-only
Description: Build for use with "yesod devel" default: False
Default: False description:
Build for use with "yesod devel"
flag old-locale flag old-locale
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.
default: False 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.
library library
cpp-options: -DVERSION="0.26" 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"
if flag(dev) || flag(library-only) if flag(dev) || flag(library-only)
cpp-options: -DDEVELOPMENT cpp-options: -DDEVELOPMENT
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans
extensions:
CPP
MultiParamTypeClasses
NoImplicitPrelude
OverloadedStrings
QuasiQuotes
RecordWildCards
TemplateHaskell
TypeFamilies
-- seem to not be needed at present:
-- GADTs
-- GeneralizedNewtypeDeriving
-- FlexibleContexts
-- EmptyDataDecls
-- NoMonomorphismRestriction
exposed-modules: Application
Foundation
Import
Settings
Settings.StaticFiles
Settings.Development
Handler.AddForm
Handler.Common
Handler.JournalR
Handler.RegisterR
Handler.RootR
Handler.SidebarR
Handler.Utils
-- other-modules:
Hledger.Web
Hledger.Web.Main
Hledger.Web.Options
-- Setup -- stops yesod devel complaining, requires build-depends: Cabal
build-depends: build-depends:
hledger == 0.26 hledger-lib == 0.26
, hledger-lib == 0.26 , hledger == 0.26
, base >= 4 && < 5 , base >= 4 && < 5
, base-compat >= 0.8.1 , base-compat >= 0.8.1
, blaze-html , blaze-html
, blaze-markup , blaze-markup
, bytestring , bytestring
, clientsession , clientsession
, cmdargs >= 0.10 && < 0.11 , cmdargs >= 0.10 && < 0.11
, data-default , data-default
, directory , directory
, filepath , filepath
, hjsmin , hjsmin
, http-conduit , http-conduit
, http-client , http-client
, HUnit , HUnit
, conduit-extra >= 1.1 , conduit-extra >= 1.1
, parsec >= 3 , parsec >= 3
, safe >= 0.2 , safe >= 0.2
, shakespeare >= 2.0 , shakespeare >= 2.0
, template-haskell , template-haskell
, text , text
, transformers , transformers
, wai , wai
, wai-extra , wai-extra
, wai-handler-launch >= 1.3 , wai-handler-launch >= 1.3
, warp , warp
, yaml , yaml
, yesod >= 1.4 && < 1.5 , yesod >= 1.4 && < 1.5
, yesod-core , yesod-core
, yesod-form , yesod-form
, yesod-static , yesod-static
, json , json
-- required by extra ghci utilities: , time >= 1.5
-- , fsnotify if flag(old-locale)
-- , hsdev build-depends: time < 1.5, old-locale
-- , mtl else
if flag(old-locale) build-depends: time >= 1.5
build-depends: time < 1.5, old-locale exposed-modules:
else Application
build-depends: time >= 1.5 Foundation
Handler.AddForm
Handler.Common
Handler.JournalR
Handler.RegisterR
Handler.RootR
Handler.SidebarR
Handler.Utils
Hledger.Web
Hledger.Web.Main
Hledger.Web.Options
Import
Settings
Settings.Development
Settings.StaticFiles
default-language: Haskell2010
executable hledger-web
executable hledger-web
if flag(library-only) if flag(library-only)
Buildable: False buildable: False
main-is: main.hs
cpp-options: -DVERSION="0.26" hs-source-dirs:
if flag(dev) app
cpp-options: -DDEVELOPMENT ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -threaded
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans
if flag(threaded) if flag(threaded)
ghc-options: -threaded ghc-options: -threaded
if flag(dev) if flag(dev)
ghc-options: -O0 ghc-options: -O0
cpp-options: -DVERSION="0.26"
extensions: if flag(dev)
CPP cpp-options: -DDEVELOPMENT
MultiParamTypeClasses
NoImplicitPrelude
OverloadedStrings
QuasiQuotes
RecordWildCards
TemplateHaskell
TypeFamilies
hs-source-dirs: app
main-is: main.hs
build-depends: build-depends:
hledger-lib == 0.26 hledger-lib == 0.26
, hledger == 0.26 , hledger == 0.26
, hledger-web == 0.26 , base >= 4 && < 5
, base >= 4 && < 5 , base-compat >= 0.8.1
, base-compat >= 0.8.1 , blaze-html
, blaze-html , blaze-markup
, blaze-markup , bytestring
, bytestring , clientsession
, clientsession , cmdargs >= 0.10 && < 0.11
, cmdargs >= 0.10 && < 0.11 , data-default
, data-default , directory
, directory , filepath
, filepath , hjsmin
, hjsmin , http-conduit
, http-conduit , http-client
, http-client , HUnit
, HUnit , conduit-extra >= 1.1
, conduit-extra , parsec >= 3
, parsec >= 3 , safe >= 0.2
, safe >= 0.2 , shakespeare >= 2.0
, shakespeare >= 2.0 && < 2.1 , template-haskell
, template-haskell , text
, text , transformers
, transformers , wai
, wai , wai-extra
, wai-extra , wai-handler-launch >= 1.3
, wai-handler-launch >= 1.3 , warp
, warp , yaml
, yaml , yesod >= 1.4 && < 1.5
, yesod >= 1.4 && < 1.5 , yesod-core
, yesod-core , yesod-form
, yesod-form , yesod-static
, yesod-static , json
, json , time >= 1.5
-- required by extra ghci utilities: , hledger-web == 0.26
-- , fsnotify if flag(old-locale)
-- , hsdev build-depends: time < 1.5, old-locale
-- , mtl else
if flag(old-locale) build-depends: time >= 1.5
build-depends: time < 1.5, old-locale default-language: Haskell2010
else
build-depends: time >= 1.5
test-suite test test-suite test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures main-is: main.hs
ghc-options: -fno-warn-type-defaults -fno-warn-orphans hs-source-dirs:
hs-source-dirs: tests tests
main-is: main.hs ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
build-depends: cpp-options: -DVERSION="0.26"
hledger-web == 0.26 build-depends:
, base hledger-lib == 0.26
, base-compat >= 0.8.1 , hledger == 0.26
, hspec , base >= 4 && < 5
, yesod , base-compat >= 0.8.1
, yesod-test , blaze-html
, blaze-markup
, bytestring
, clientsession
, cmdargs >= 0.10 && < 0.11
, data-default
, directory
, filepath
, hjsmin
, http-conduit
, http-client
, HUnit
, conduit-extra >= 1.1
, parsec >= 3
, safe >= 0.2
, shakespeare >= 2.0
, template-haskell
, text
, transformers
, wai
, wai-extra
, wai-handler-launch >= 1.3
, warp
, yaml
, yesod >= 1.4 && < 1.5
, yesod-core
, yesod-form
, yesod-static
, json
, time >= 1.5
, hledger-web
, hspec
, yesod-test
other-modules:
HomeTest
TestImport
default-language: Haskell2010

View File

@ -1,100 +1,85 @@
-- This file has been generated from package.yaml by hpack version 0.5.4.
--
-- see: https://github.com/sol/hpack
name: hledger name: hledger
version: 0.26 version: 0.26
stability: stable stability: stable
category: Finance, Console category: Finance, Console
synopsis: The main command-line interface for the hledger accounting tool. synopsis: The main command-line interface for the hledger accounting tool.
description: description: hledger is a library and set of user tools for working
hledger is a library and set of user tools for working
with financial data (or anything that can be tracked in a with financial data (or anything that can be tracked in a
double-entry accounting ledger.) It is a haskell port and double-entry accounting ledger.) It is a haskell port and
friendly fork of John Wiegley's Ledger. hledger provides friendly fork of John Wiegley's Ledger. hledger provides
command-line, curses and web interfaces, and aims to be a command-line, curses and web interfaces, and aims to be a
reliable, practical tool for daily use. reliable, practical tool for daily use.
license: GPL license: GPL
license-file: LICENSE license-file: LICENSE
author: Simon Michael <simon@joyful.com> author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com> maintainer: Simon Michael <simon@joyful.com>
homepage: http://hledger.org homepage: http://hledger.org
bug-reports: http://hledger.org/bugs bug-reports: http://hledger.org/bugs
tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.1
cabal-version: >= 1.10 cabal-version: >= 1.10
build-type: Simple build-type: Simple
-- data-dir: data
-- data-files: extra-source-files:
extra-tmp-files: CHANGES
extra-source-files: README.md
test/test.hs test/test.hs
CHANGES
README.md
source-repository head source-repository head
type: git type: git
location: https://github.com/simonmichael/hledger location: https://github.com/simonmichael/hledger
flag threaded flag threaded
Description: Build with support for multithreaded execution default: True
Default: True description:
Build with support for multithreaded execution
flag curses flag curses
Description: On POSIX systems, enable curses support for auto-detecting terminal width. default: True
Default: True description:
On POSIX systems, enable curses support for auto-detecting terminal width.
flag old-locale flag old-locale
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.
default: False 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.
library library
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" cpp-options: -DVERSION="0.26"
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans
default-language: Haskell2010
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
build-depends: build-depends:
hledger-lib == 0.26 hledger-lib == 0.26
,base >= 4.3 && < 5 , base >= 4.3 && < 5
,base-compat >= 0.8.1 , base-compat >= 0.8.1
-- ,cabal-file-th , containers
,containers , unordered-containers
,unordered-containers , cmdargs >= 0.10 && < 0.11
,cmdargs >= 0.10 && < 0.11 , csv
,csv , directory
-- ,data-pprint >= 0.2.1 && < 0.3 , filepath
,directory , haskeline >= 0.6 && <= 0.8
,filepath , HUnit
,haskeline >= 0.6 && <= 0.8 , mtl
,HUnit , mtl-compat
,mtl , old-time
,mtl-compat , parsec >= 3
,old-time , process
,parsec >= 3 , regex-tdfa
,process , safe >= 0.2
,regex-tdfa , split >= 0.1 && < 0.3
,safe >= 0.2 , text >= 0.11
,split >= 0.1 && < 0.3 , tabular >= 0.2 && < 0.3
,text >= 0.11 , utf8-string >= 0.3.5 && < 1.1
,tabular >= 0.2 && < 0.3 , wizards == 1.0.*
,utf8-string >= 0.3.5 && < 1.1 , shakespeare >= 2.0.2.2 && < 2.1
,wizards == 1.0.* , terminfo
, pretty-show >= 1.6.4
, time >= 1.5
if impl(ghc >= 7.10) if impl(ghc >= 7.10)
-- ghc 7.10 requires shakespeare 2.0.2.2+ -- ghc 7.10 requires shakespeare 2.0.2.2+
build-depends: shakespeare >= 2.0.2.2 && < 2.1 build-depends: shakespeare >= 2.0.2.2 && < 2.1
@ -113,44 +98,62 @@ library
if !os(windows) && flag(curses) if !os(windows) && flag(curses)
build-depends: terminfo build-depends: terminfo
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
default-language: Haskell2010
executable hledger executable hledger
main-is: hledger-cli.hs main-is: hledger-cli.hs
hs-source-dirs: app hs-source-dirs:
default-language: Haskell2010 app
cpp-options: -DVERSION="0.26" ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -threaded
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans
if flag(threaded) if flag(threaded)
ghc-options: -threaded ghc-options: -threaded
-- same as above: cpp-options: -DVERSION="0.26"
build-depends: build-depends:
hledger-lib == 0.26 hledger-lib == 0.26
,hledger == 0.26 , base >= 4.3 && < 5
,base >= 4.3 && < 5 , base-compat >= 0.8.1
,base-compat >= 0.8.1 , containers
,containers , unordered-containers
,unordered-containers , cmdargs >= 0.10 && < 0.11
,cmdargs >= 0.10 && < 0.11 , csv
,csv , directory
-- ,data-pprint >= 0.2.1 && < 0.3 , filepath
,directory , haskeline >= 0.6 && <= 0.8
,filepath , HUnit
,haskeline >= 0.6 && <= 0.8 , mtl
,HUnit , mtl-compat
,mtl , old-time
,mtl-compat , parsec >= 3
,old-time , process
,parsec >= 3 , regex-tdfa
,process , safe >= 0.2
,regex-tdfa , split >= 0.1 && < 0.3
,safe >= 0.2 , text >= 0.11
,split >= 0.1 && < 0.3 , tabular >= 0.2 && < 0.3
,tabular >= 0.2 && < 0.3 , utf8-string >= 0.3.5 && < 1.1
,text >= 0.11 , wizards == 1.0.*
,utf8-string >= 0.3.5 && < 1.1 , shakespeare >= 2.0.2.2 && < 2.1
,wizards == 1.0.* , terminfo
-- as above , pretty-show >= 1.6.4
, time >= 1.5
, hledger == 0.26
if impl(ghc >= 7.10) if impl(ghc >= 7.10)
build-depends: shakespeare >= 2.0.2.2 && < 2.1 build-depends: shakespeare >= 2.0.2.2 && < 2.1
else else
@ -163,43 +166,46 @@ executable hledger
build-depends: time >= 1.5 build-depends: time >= 1.5
if impl(ghc >= 7.4) if impl(ghc >= 7.4)
build-depends: pretty-show >= 1.6.4 build-depends: pretty-show >= 1.6.4
default-language: Haskell2010
test-suite test test-suite test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: test.hs main-is: test.hs
hs-source-dirs: test hs-source-dirs:
default-language: Haskell2010 test
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
ghc-options: -fno-warn-type-defaults -fno-warn-orphans cpp-options: -DVERSION="0.26"
-- same as above: build-depends:
build-depends: hledger-lib hledger-lib == 0.26
, hledger , base >= 4.3 && < 5
, base >= 4.3 && < 5 , base-compat >= 0.8.1
, base-compat >= 0.8.1 , containers
, cmdargs , unordered-containers
, containers , cmdargs >= 0.10 && < 0.11
, csv , csv
-- , data-pprint >= 0.2.1 && < 0.3 , directory
, directory , filepath
, filepath , haskeline >= 0.6 && <= 0.8
, haskeline , HUnit
, HUnit , mtl
, mtl , mtl-compat
, mtl-compat , old-time
, old-time , parsec >= 3
, parsec >= 3 , process
, process , regex-tdfa
, regex-tdfa , safe >= 0.2
, safe , split >= 0.1 && < 0.3
, split , text >= 0.11
,tabular >= 0.2 && < 0.3 , tabular >= 0.2 && < 0.3
, test-framework , utf8-string >= 0.3.5 && < 1.1
, test-framework-hunit , wizards == 1.0.*
, text , shakespeare >= 2.0.2.2 && < 2.1
, transformers , terminfo
, wizards == 1.0.* , pretty-show >= 1.6.4
-- as above , time >= 1.5
, hledger
, test-framework
, test-framework-hunit
if impl(ghc >= 7.10) if impl(ghc >= 7.10)
build-depends: shakespeare >= 2.0.2.2 && < 2.1 build-depends: shakespeare >= 2.0.2.2 && < 2.1
else else
@ -212,12 +218,13 @@ test-suite test
build-depends: time < 1.5, old-locale build-depends: time < 1.5, old-locale
else else
build-depends: time >= 1.5 build-depends: time >= 1.5
default-language: Haskell2010
benchmark bench benchmark bench
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
hs-source-dirs: bench hs-source-dirs: bench
main-is: bench.hs main-is: bench.hs
other-modules: SimpleBench
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
ghc-options: -fno-warn-type-defaults -fno-warn-orphans ghc-options: -fno-warn-type-defaults -fno-warn-orphans
default-language: Haskell2010 default-language: Haskell2010