hledger/hledger-lib/hledger-lib.cabal

297 lines
7.8 KiB
Plaintext
Raw Normal View History

cabal-version: 1.12
2023-11-23 11:55:47 +03:00
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
name: hledger-lib
2024-06-02 02:30:21 +03:00
version: 1.34.99
2023-09-21 09:41:22 +03:00
synopsis: A library providing the core functionality of hledger
description: This library contains hledger's core functionality.
It is used by most hledger* packages so that they support the same
command line options, file formats, reports, etc.
.
2020-03-22 20:49:49 +03:00
hledger is a robust, cross-platform set of tools for tracking money,
time, or any other commodity, using double-entry accounting and a
simple, editable file format, with command-line, terminal and web
interfaces. It is a Haskell rewrite of Ledger, and one of the leading
2023-09-21 09:41:22 +03:00
implementations of Plain Text Accounting.
.
See also:
.
- https://hledger.org - hledger's home page
.
- https://hledger.org/dev.html - starting point for hledger's developer docs
.
- https://hackage.haskell.org/package/hledger-lib/docs/Hledger.html - starting point for hledger's haddock docs
category: Finance
stability: stable
homepage: http://hledger.org
2015-10-30 23:08:03 +03:00
bug-reports: http://bugs.hledger.org
author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com>
license: GPL-3
license-file: LICENSE
build-type: Simple
tested-with:
2023-07-01 21:13:29 +03:00
GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.5, GHC==9.6.2
extra-source-files:
2019-01-26 05:33:26 +03:00
CHANGES.md
2020-03-22 19:08:29 +03:00
README.md
test/unittest.hs
test/doctests.hs
source-repository head
type: git
location: https://github.com/simonmichael/hledger
2024-05-02 05:21:13 +03:00
flag ghcdebug
description: Build with support for attaching a ghc-debug client
manual: True
default: False
library
exposed-modules:
Hledger
Hledger.Data
Hledger.Data.Account
Hledger.Data.AccountName
Hledger.Data.Amount
Hledger.Data.Balancing
Hledger.Data.Dates
Hledger.Data.Errors
Hledger.Data.Journal
Hledger.Data.JournalChecks
Hledger.Data.JournalChecks.Ordereddates
Hledger.Data.JournalChecks.Uniqueleafnames
Hledger.Data.Json
Hledger.Data.Ledger
Hledger.Data.Period
Hledger.Data.PeriodicTransaction
Hledger.Data.StringFormat
Hledger.Data.Posting
Hledger.Data.RawOptions
2016-04-13 07:10:02 +03:00
Hledger.Data.Timeclock
Hledger.Data.Transaction
Hledger.Data.TransactionModifier
Hledger.Data.Types
Hledger.Data.Valuation
Hledger.Query
Hledger.Read
Hledger.Read.Common
Hledger.Read.CsvReader
Hledger.Read.CsvUtils
Hledger.Read.InputOptions
Hledger.Read.JournalReader
Hledger.Read.RulesReader
Hledger.Read.TimedotReader
2016-04-13 07:10:02 +03:00
Hledger.Read.TimeclockReader
Hledger.Reports
Hledger.Reports.ReportOptions
Hledger.Reports.ReportTypes
Hledger.Reports.AccountTransactionsReport
Hledger.Reports.BalanceReport
Hledger.Reports.BudgetReport
Hledger.Reports.EntriesReport
Hledger.Reports.MultiBalanceReport
Hledger.Reports.PostingsReport
Hledger.Utils
Hledger.Utils.Debug
Hledger.Utils.IO
2015-08-19 23:47:26 +03:00
Hledger.Utils.Parse
Hledger.Utils.Regex
2015-08-19 23:47:26 +03:00
Hledger.Utils.String
Hledger.Utils.Test
lib: textification begins! account names The first of several conversions from String to (strict) Text, hopefully reducing space and time usage. This one shows a small improvement, with GHC 7.10.3 and text-1.2.2.1: hledger -f data/100x100x10.journal stats string: <<ghc: 39471064 bytes, 77 GCs, 198421/275048 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.001 elapsed), 0.015 MUT (0.020 elapsed), 0.010 GC (0.014 elapsed) :ghc>> text: <<ghc: 39268024 bytes, 77 GCs, 197018/270840 avg/max bytes residency (3 samples), 2M in use, 0.000 INIT (0.002 elapsed), 0.016 MUT (0.022 elapsed), 0.009 GC (0.011 elapsed) :ghc>> hledger -f data/1000x100x10.journal stats string: <<ghc: 318555920 bytes, 617 GCs, 2178997/7134472 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.001 elapsed), 0.129 MUT (0.136 elapsed), 0.067 GC (0.077 elapsed) :ghc>> text: <<ghc: 314248496 bytes, 612 GCs, 2074045/6617960 avg/max bytes residency (7 samples), 16M in use, 0.000 INIT (0.003 elapsed), 0.137 MUT (0.145 elapsed), 0.067 GC (0.079 elapsed) :ghc>> hledger -f data/10000x100x10.journal stats string: <<ghc: 3114763608 bytes, 6026 GCs, 18858950/75552024 avg/max bytes residency (11 samples), 201M in use, 0.000 INIT (0.000 elapsed), 1.331 MUT (1.372 elapsed), 0.699 GC (0.812 elapsed) :ghc>> text: <<ghc: 3071468920 bytes, 5968 GCs, 14120344/62951360 avg/max bytes residency (9 samples), 124M in use, 0.000 INIT (0.003 elapsed), 1.272 MUT (1.349 elapsed), 0.513 GC (0.578 elapsed) :ghc>> hledger -f data/100000x100x10.journal stats string: <<ghc: 31186579432 bytes, 60278 GCs, 135332581/740228992 avg/max bytes residency (13 samples), 1697M in use, 0.000 INIT (0.008 elapsed), 14.677 MUT (15.508 elapsed), 7.081 GC (8.074 elapsed) :ghc>> text: <<ghc: 30753427672 bytes, 59763 GCs, 117595958/666457240 avg/max bytes residency (14 samples), 1588M in use, 0.000 INIT (0.008 elapsed), 13.713 MUT (13.966 elapsed), 6.220 GC (7.108 elapsed) :ghc>>
2016-05-24 04:16:21 +03:00
Hledger.Utils.Text
Text.Tabular.AsciiWide
other-modules:
Text.Megaparsec.Custom
Text.WideString
Paths_hledger_lib
hs-source-dirs:
./
2022-08-23 14:16:21 +03:00
ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind
build-depends:
Decimal >=0.5.1
, Glob >=0.9
2023-07-01 21:13:29 +03:00
, aeson >=1 && <2.3
, aeson-pretty
2020-07-14 22:09:45 +03:00
, ansi-terminal >=0.9
, array
2024-01-04 21:25:13 +03:00
, base >=4.14 && <4.20
2023-03-14 23:42:31 +03:00
, base-compat
, blaze-markup >=0.5.1
, bytestring
, call-stack
csv: merge lucamolteni's cassava/custom separators (squashed) (#829) commit 5ba464de761b298e50d57a8b7d14bc28adb30d5d Author: Luca Molteni <volothamp@gmail.com> Date: Fri Sep 7 17:54:12 2018 +0200 Fix CI 2 commit f060ae9449f4b61a915b0ed4629fc1ba9b66fb4a Author: Luca Molteni <volothamp@gmail.com> Date: Fri Sep 7 17:30:08 2018 +0200 Fix CI build commit af0719a33b9b72ad244ae80198d881a1f7145e9d Author: Luca Molteni <volothamp@gmail.com> Date: Fri Sep 7 17:19:01 2018 +0200 Fix rebase commit 1a24ddfa54dfb4ff1326e1a51005ffa82d3dc3c8 Author: Luca Molteni <volothamp@gmail.com> Date: Fri Aug 10 16:25:24 2018 +0200 Fixed some GHC warnings commit 1ac43398a359b5925ef71f53347698f1c6c510ef Author: Luca Molteni <volothamp@gmail.com> Date: Fri Aug 10 16:14:49 2018 +0200 Fix .cabal commit 422456b925d8aa4ab3e869f51e98c2b1c3dcde0a Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jul 1 22:56:20 2018 +0200 Removed to-do list commit 1118b762e4fd15c4fe7ba48ba86676706ea3a5a5 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jul 1 22:53:28 2018 +0200 Better test commit 1146ed0941655668bf7684f18aa15c5f4b9b20c2 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jul 1 15:32:28 2018 +0200 Fix parsing commit 4fc2374b2b81802990da30c96756aab54d77399c Author: Luca Molteni <volothamp@gmail.com> Date: Thu Jun 21 22:11:11 2018 +0200 Parsing of separator commit f7a61737f1ad4460ba20ca9b2e86eb21468abb33 Author: Luca Molteni <volothamp@gmail.com> Date: Thu Jun 21 14:29:23 2018 +0200 Almost separator in options commit ac8841cf3b9c80914bc3271ad9b9ff4ae9ba48a7 Author: Luca Molteni <volothamp@gmail.com> Date: Thu Jun 21 14:16:59 2018 +0200 Separator in parseCSV commit 92a8b9f6ba77ea4237f769641e03029ac88542ea Author: Luca Molteni <volothamp@gmail.com> Date: Thu Jun 21 13:30:41 2018 +0200 separator option commit ec417a81ae625647cf35e61776cdf02bdb2c6aea Author: Luca Molteni <volothamp@gmail.com> Date: Thu Jun 21 10:45:26 2018 +0200 Removed one qualified import commit 8b2f386c2f780adcd34cff3de7edceacc1d325a7 Author: Luca Molteni <volothamp@gmail.com> Date: Wed Jun 20 14:01:12 2018 +0200 Removed string conversions commit a14d0e099e28a286bb81770cfc9cb8f5c7e5cf1f Author: Luca Molteni <volothamp@gmail.com> Date: Wed Jun 20 10:23:20 2018 +0200 custom delimiter in cassava commit 694d48e2bc1ada0037b90367c017f3082f68ed45 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jun 10 17:51:54 2018 +0200 Use Text.getContents - remove UTF-8 compatibility library commit a7ada2cc60033ebdd796ca34cc2ec69a4f387843 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jun 10 17:49:34 2018 +0200 todo list commit 58ec47d3987909f6bace50e3e647e30dadd5bf03 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jun 10 17:45:22 2018 +0200 CSV test now has unicode characters commit b7851e94c3f1683b63ec7250a12bcde3b7bed691 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jun 10 16:59:39 2018 +0200 Use decode from Text commit 79f59fd28ccaca08fcd718fcd8d00b1c1d65d7e1 Author: Luca Molteni <volothamp@gmail.com> Date: Sun Jun 10 13:28:57 2018 +0200 Use Text and Lazy Bytestring commit 470c9bcb8dc00669beb4ef0303a1e7d9f7aecc89 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 15:30:22 2018 +0200 Use megaparsec error commit f978848ba249ef4f67b855bea5d4e549290c205c Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 15:22:07 2018 +0200 Renamed qualify and remove Parsec commit 152587fde204c43a55798d212e43f37cd3038c2e Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 15:12:36 2018 +0200 Use cassava mega parsec commit cf281577a3d3a071196484a6fc8485f2ea1f7d67 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 14:01:47 2018 +0200 Removed Data.Vector commit 1272e8e758369d8cc5778029a705b277355a5029 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 12:16:18 2018 +0200 Removed Parsec ParseError commit ae07f043135a19307fd65b281ade37a74c76acb2 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 12:06:14 2018 +0200 Type sinonim for ParsecError commit 8e15b253c11bd1c0c35a7641aeb18aa54e0ba9b0 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 11:16:08 2018 +0200 Replaced with typeclasses commit 1ed46f9c175603611325f3d377004e4b85f29377 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 11:01:33 2018 +0200 Replaced Text/CSV with Cassava commit 362f4111b5854145703174b976fc7acbd71b8783 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 10:34:37 2018 +0200 Use cassava parsin instead of Text/CSV commit 83e678e371618687cf7c15a4e2cfa67f570b6b64 Author: Luca Molteni <volothamp@gmail.com> Date: Sat Jun 9 08:22:51 2018 +0200 Text CSV error messages commit f922df71d274beeacab9fb2530b16c97f005cc08 Author: Luca Molteni <volothamp@gmail.com> Date: Fri Jun 8 21:45:20 2018 +0200 Better types commit edd130781c84790a53bff2283e6041eb8232e7cf Author: Luca Molteni <volothamp@gmail.com> Date: Fri Jun 8 21:34:59 2018 +0200 Conversion to Text CSV type commit 0799383214483018ad2d977a3c8022414959c2b2 Author: Luca Molteni <volothamp@gmail.com> Date: Fri Jun 8 16:06:21 2018 +0200 First function with cassava commit e92aeb151ff527b383ff3d0ced7764e81b71af82 Author: Luca Molteni <volothamp@gmail.com> Date: Fri Jun 8 13:47:34 2018 +0200 Added cassava as dependency commit 5ea005c558a3939af7e5f0cd735a9b4da931228e Author: Luca Molteni <volothamp@gmail.com> Date: Fri Jun 8 13:18:47 2018 +0200 Better .gitignore for multi idea modules
2018-09-07 20:12:13 +03:00
, cassava
, cassava-megaparsec
2017-12-31 21:03:50 +03:00
, cmdargs >=0.10
2023-01-26 13:32:19 +03:00
, colour >=2.3.6
2021-03-29 18:19:54 +03:00
, containers >=0.5.9
, data-default >=0.5
2022-08-23 03:11:53 +03:00
, deepseq
, directory
2022-06-04 13:24:56 +03:00
, doclayout >=0.3 && <0.5
, extra >=1.6.3
2019-01-27 02:52:58 +03:00
, file-embed >=0.0.10
, filepath
, hashtables >=1.2.3.1
2023-12-14 21:58:02 +03:00
, megaparsec >=7.0.0 && <9.7
, microlens >=0.4
, microlens-th >=0.4
, mtl >=2.2.1
, parser-combinators >=0.4.0
, pretty-simple >4 && <5
, regex-tdfa
2024-02-29 04:34:11 +03:00
, safe >=0.3.20
, tabular >=0.2
, tasty >=1.2.3
, tasty-hunit >=0.10.0.2
2019-01-27 02:52:58 +03:00
, template-haskell
2023-03-19 09:06:55 +03:00
, terminal-size >=0.3.3
2023-11-23 11:55:47 +03:00
, text >=1.2.4.1
2023-01-26 07:58:21 +03:00
, text-ansi >=0.2.1
, time >=1.5
, timeit
2017-12-31 21:03:50 +03:00
, transformers >=0.2
, uglymemo
, unordered-containers >=0.2
2017-12-31 21:03:50 +03:00
, utf8-string >=0.3.5
default-language: Haskell2010
2023-03-11 08:14:30 +03:00
if (!(os(windows)))
build-depends:
pager >=0.1.1.0
2024-05-02 05:21:13 +03:00
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
2024-05-02 12:04:18 +03:00
test-suite doctest
type: exitcode-stdio-1.0
main-is: doctests.hs
hs-source-dirs:
./
test
ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind
build-depends:
Decimal >=0.5.1
, Glob >=0.7
, aeson >=1 && <2.3
, aeson-pretty
, ansi-terminal >=0.9
, array
, base >=4.14 && <4.20
, base-compat
, blaze-markup >=0.5.1
, bytestring
, call-stack
, cassava
, cassava-megaparsec
, cmdargs >=0.10
, colour >=2.3.6
, containers >=0.5.9
, data-default >=0.5
, deepseq
, directory
, doclayout >=0.3 && <0.5
, doctest >=0.18.1
, extra >=1.6.3
, file-embed >=0.0.10
, filepath
, hashtables >=1.2.3.1
, megaparsec >=7.0.0 && <9.7
, microlens >=0.4
, microlens-th >=0.4
, mtl >=2.2.1
, parser-combinators >=0.4.0
, pretty-simple >4 && <5
, regex-tdfa
, safe >=0.3.20
, tabular >=0.2
, tasty >=1.2.3
, tasty-hunit >=0.10.0.2
, template-haskell
, terminal-size >=0.3.3
, text >=1.2.4.1
, text-ansi >=0.2.1
, time >=1.5
, timeit
, transformers >=0.2
, uglymemo
, unordered-containers >=0.2
, utf8-string >=0.3.5
default-language: Haskell2010
if (!(os(windows)))
build-depends:
pager >=0.1.1.0
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
if impl(ghc >= 9.0) && impl(ghc < 9.2)
buildable: False
test-suite unittest
type: exitcode-stdio-1.0
main-is: unittest.hs
hs-source-dirs:
./
test
2022-08-23 14:16:21 +03:00
ghc-options: -Wall -Wno-incomplete-uni-patterns -Wno-missing-signatures -Wno-orphans -Wno-type-defaults -Wno-unused-do-bind
build-depends:
Decimal >=0.5.1
, Glob >=0.9
2023-07-01 21:13:29 +03:00
, aeson >=1 && <2.3
, aeson-pretty
2020-07-14 22:09:45 +03:00
, ansi-terminal >=0.9
, array
2024-01-04 21:25:13 +03:00
, base >=4.14 && <4.20
2023-03-14 23:42:31 +03:00
, base-compat
, blaze-markup >=0.5.1
, bytestring
, call-stack
, cassava
, cassava-megaparsec
, cmdargs >=0.10
2023-01-26 13:32:19 +03:00
, colour >=2.3.6
2021-03-29 18:19:54 +03:00
, containers >=0.5.9
, data-default >=0.5
2022-08-23 03:11:53 +03:00
, deepseq
, directory
2022-06-04 13:24:56 +03:00
, doclayout >=0.3 && <0.5
, extra >=1.6.3
, file-embed >=0.0.10
, filepath
, hashtables >=1.2.3.1
, hledger-lib
2023-12-14 21:58:02 +03:00
, megaparsec >=7.0.0 && <9.7
, microlens >=0.4
, microlens-th >=0.4
, mtl >=2.2.1
, parser-combinators >=0.4.0
, pretty-simple >4 && <5
, regex-tdfa
2024-02-29 04:34:11 +03:00
, safe >=0.3.20
, tabular >=0.2
, tasty >=1.2.3
, tasty-hunit >=0.10.0.2
, template-haskell
2023-03-19 09:06:55 +03:00
, terminal-size >=0.3.3
2023-11-23 11:55:47 +03:00
, text >=1.2.4.1
2023-01-26 07:58:21 +03:00
, text-ansi >=0.2.1
, time >=1.5
, timeit
, transformers >=0.2
, uglymemo
, unordered-containers >=0.2
, utf8-string >=0.3.5
buildable: True
default-language: Haskell2010
2023-03-11 08:14:30 +03:00
if (!(os(windows)))
build-depends:
pager >=0.1.1.0
2024-05-02 05:21:13 +03:00
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7