Compare commits

..

46 Commits

Author SHA256 Message Date
Dominique Leuenberger
9fb55cd96c Accepting request 1231498 from devel:languages:haskell
version update for ghc-9.10.1

OBS-URL: https://build.opensuse.org/request/show/1231498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=19
2024-12-20 22:11:21 +00:00
Ana Guerrero
48fedb9ab9 Accepting request 1218583 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1218583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=18
2024-10-28 14:19:57 +00:00
Peter Simons
7bdd13b8b0 osc copypac from project:devel:languages:haskell:ghc-9.8.x package:hledger-interest revision:6, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=41
2024-10-26 13:48:29 +00:00
Ana Guerrero
a6642f041a Accepting request 1179758 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1179758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=17
2024-06-11 16:28:16 +00:00
Peter Simons
3a2d72df3d osc copypac from project:devel:languages:haskell:ghc-9.8.x package:hledger-interest revision:5, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=39
2024-06-03 21:00:54 +00:00
Ana Guerrero
90d95da886 Accepting request 1170600 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1170600
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=16
2024-04-28 19:51:17 +00:00
Peter Simons
00737e352a osc copypac from project:devel:languages:haskell:ghc-9.8.x package:hledger-interest revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=37
2024-04-21 14:36:12 +00:00
Ana Guerrero
957f03efb0 Accepting request 1130930 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1130930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=15
2023-12-05 16:03:57 +00:00
Peter Simons
b62fbd2d7c osc copypac from project:devel:languages:haskell:ghc-9.6.x package:hledger-interest revision:6, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=35
2023-12-05 09:08:39 +00:00
Peter Simons
d0ed4a766c osc copypac from project:devel:languages:haskell:ghc-9.6.x package:hledger-interest revision:5, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=34
2023-11-22 09:17:23 +00:00
Peter Simons
6aadcb2576 osc copypac from project:devel:languages:haskell:ghc-9.6.x package:hledger-interest revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=33
2023-11-16 16:59:38 +00:00
Peter Simons
99a28d8c0f osc copypac from project:devel:languages:haskell:ghc-9.6.x package:hledger-interest revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=32
2023-11-10 14:07:23 +00:00
Ana Guerrero
62808f4906 Accepting request 1110384 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1110384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=14
2023-09-12 19:02:43 +00:00
Peter Simons
fb1f52e2c8 osc copypac from project:devel:languages:haskell:ghc-9.4.x package:hledger-interest revision:9, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=30
2023-09-05 21:01:08 +00:00
Dominique Leuenberger
3f873beb11 Accepting request 1094460 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1094460
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=13
2023-06-22 21:25:42 +00:00
Peter Simons
d7277c780a osc copypac from project:devel:languages:haskell:ghc-9.4.x package:hledger-interest revision:8, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=28
2023-06-21 16:50:40 +00:00
Dominique Leuenberger
de4728ae04 Accepting request 1076153 from devel:languages:haskell
update for ghc-9.4.4

OBS-URL: https://build.opensuse.org/request/show/1076153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=12
2023-04-04 19:25:17 +00:00
Peter Simons
02e9214202 osc copypac from project:devel:languages:haskell:ghc-9.4.x package:hledger-interest revision:7, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=26
2023-03-30 17:39:02 +00:00
Peter Simons
483710969f osc copypac from project:devel:languages:haskell:ghc-9.4.x package:hledger-interest revision:6, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=25
2023-03-30 08:26:53 +00:00
Dominique Leuenberger
2735d96b50 Accepting request 1059136 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1059136
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=11
2023-01-18 12:11:09 +00:00
OBS User buildservice-autocommit
16c375f963 Updating link to change in openSUSE:Factory/hledger-interest revision 11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=cddea71f1bdd505490dc32b4851d8e35
2023-01-18 12:11:09 +00:00
Dominique Leuenberger
4f829de560 Accepting request 1008552 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1008552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=10
2022-10-13 13:43:40 +00:00
Peter Simons
9cbefac1ba osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:24, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=21
2022-10-06 14:46:31 +00:00
Richard Brown
0af4b46398 Accepting request 987123 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/987123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=9
2022-08-01 19:31:02 +00:00
Peter Simons
0908efa090 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:23, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=19
2022-06-29 12:18:32 +00:00
Dominique Leuenberger
29d89994ed Accepting request 953409 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/953409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=8
2022-02-11 22:08:11 +00:00
Peter Simons
6af94488ea osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:21, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=18
2022-02-11 02:03:17 +00:00
Peter Simons
7cf21cecf2 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:20, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=17
2022-02-09 13:44:56 +00:00
Dominique Leuenberger
09b338b13b Accepting request 923806 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/923806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=7
2021-10-12 19:49:13 +00:00
b24d09c8ad osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:18, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=16
2021-10-07 13:20:01 +00:00
Dominique Leuenberger
1b0650ddb0 Accepting request 912761 from devel:languages:haskell
automated update of haskell stack

OBS-URL: https://build.opensuse.org/request/show/912761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=6
2021-08-25 18:57:38 +00:00
bcdaf5efcd osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:17, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=15
2021-08-17 09:54:23 +00:00
Dominique Leuenberger
dd4e5a02a4 Accepting request 879194 from devel:languages:haskell
- Update hledger-interest to version 1.6.1.
  Upstream does not provide a change log file.

OBS-URL: https://build.opensuse.org/request/show/879194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=5
2021-03-17 19:15:58 +00:00
f0ad1b0b48 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=13 2021-03-15 12:28:22 +00:00
68cc0081bd osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:15, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=12
2021-03-14 22:14:49 +00:00
Dominique Leuenberger
1d5fcb2278 Accepting request 857687 from devel:languages:haskell
update haskell stack in openSUS

OBS-URL: https://build.opensuse.org/request/show/857687
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=4
2020-12-22 10:49:56 +00:00
0896a0da06 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:12, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=10
2020-12-19 18:29:46 +00:00
f7189f2e73 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:11, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=9
2020-12-19 17:49:42 +00:00
49a100bd5f osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:9, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=8
2020-12-18 12:53:24 +00:00
Dominique Leuenberger
ac7f02190e Accepting request 832347 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/832347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=3
2020-09-07 19:32:55 +00:00
Peter Simons
9e7d74d363 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:5, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=6
2020-09-04 11:41:15 +00:00
Dominique Leuenberger
a8c08156b0 Accepting request 829520 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/829520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=2
2020-08-28 19:42:12 +00:00
Peter Simons
bc1a68cd68 Accepting request 827785 from home:michel_mno:branches:devel:languages:haskell
- Add _constraints with 6GB min disk space for ppc64/ppc64le

OBS-URL: https://build.opensuse.org/request/show/827785
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=4
2020-08-21 11:12:17 +00:00
Peter Simons
a8dc804af4 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=3
2020-08-19 01:02:39 +00:00
Dominique Leuenberger
07bae41c9f Accepting request 815003 from devel:languages:haskell
initial version

OBS-URL: https://build.opensuse.org/request/show/815003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hledger-interest?expand=0&rev=1
2020-06-19 15:06:34 +00:00
Peter Simons
3e00416224 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:hledger-interest revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hledger-interest?expand=0&rev=1
2020-06-16 10:58:03 +00:00
2 changed files with 0 additions and 130 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a891f3786f0bb63818786bddffd1d67c1a265176f3fc97e76619bea7d3bb7442
size 8578

View File

@ -1,127 +0,0 @@
Name: hledger-interest
Version: 1.6.6
x-revision: 5
Synopsis: computes interest for a given account
License: BSD3
License-file: LICENSE
Author: Peter Simons <simons@cryp.to>
Maintainer: Peter Simons <simons@cryp.to>
Homepage: https://github.com/peti/hledger-interest
Category: Finance
Build-type: Simple
Cabal-version: >= 1.10
Extra-source-files: README.md
Stability: stable
tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7,
GHC == 9.0.2, GHC == 9.2.8, GHC == 9.4.7, GHC == 9.6.1
Description:
hledger-interest is a small command-line utility based on Simon
Michael's hleder library. Its purpose is to compute interest for a
given ledger account. Using command line flags, the program can be
configured to use various schemes for day-counting, such as act\/act,
30\/360, 30E\/360, and 30\/360isda. Furthermore, it supports a (small)
number of interest schemes, i.e. annual interest with a fixed rate and
the scheme mandated by the German BGB288 (Basiszins fuer
Verbrauchergeschaefte). Extending support for other schemes is fairly
easy, but currently requires changes to the source code.
.
As an example, consider the following loan, stored in a file called
@test.ledger@:
.
> 2008/09/26 Loan
> Assets:Bank EUR 10000.00
> Liabilities:Bank
>
> 2008/11/27 Payment
> Assets:Bank EUR -3771.12
> Liabilities:Bank
>
> 2009/05/03 Payment
> Assets:Bank EUR -1200.00
> Liabilities:Bank
>
> 2010/12/10 Payment
> Assets:Bank EUR -3700.00
> Liabilities:Bank
.
Suppose that loan earns 5% interest per year, and payments amortize
interest before amortizing the principal claim, then the resulting
ledger would look like this:
.
> $ hledger-interest --file=test.ledger --source=Expenses:Interest --target=Liabilities:Bank --30-360 --annual=0.05 Liabilities:Bank
> 2008/09/26 Loan
> Assets:Bank EUR 10000.00
> Liabilities:Bank
>
> 2008/11/27 Payment
> Assets:Bank EUR -3771.12
> Liabilities:Bank
>
> 2008/11/27 5.00% interest for EUR -10000.00 over 61 days
> Liabilities:Bank EUR -84.72
> Expenses:Interest
>
> 2008/12/31 5.00% interest for EUR -6313.60 over 34 days
> Liabilities:Bank EUR -29.81
> Expenses:Interest
>
> 2009/05/03 Payment
> Assets:Bank EUR -1200.00
> Liabilities:Bank
>
> 2009/05/03 5.00% interest for EUR -6343.42 over 123 days
> Liabilities:Bank EUR -108.37
> Expenses:Interest
>
> 2009/12/31 5.00% interest for EUR -5251.78 over 238 days
> Liabilities:Bank EUR -173.60
> Expenses:Interest
>
> 2010/12/10 Payment
> Assets:Bank EUR -3700.00
> Liabilities:Bank
>
> 2010/12/10 5.00% interest for EUR -5425.38 over 340 days
> Liabilities:Bank EUR -256.20
> Expenses:Interest
>
> 2010/12/31 5.00% interest for EUR -1981.58 over 21 days
> Liabilities:Bank EUR -5.78
> Expenses:Interest
.
Running the utility with @--help@ gives a brief overview over the
available options:
.
> Usage: hledger-interest [OPTION...] ACCOUNT
> -h --help print this message and exit
> -V --version show version number and exit
> -v --verbose echo input ledger to stdout (default)
> -q --quiet don't echo input ledger to stdout
> --today compute interest up until today
> -f FILE --file=FILE input ledger file (pass '-' for stdin)
> -s ACCOUNT --source=ACCOUNT interest source account
> -t ACCOUNT --target=ACCOUNT interest target account
> -I --ignore-assertions ignore any failing balance assertions
> --act use 'act' day counting convention
> --30-360 use '30/360' day counting convention
> --30E-360 use '30E/360' day counting convention
> --30E-360isda use '30E/360isda' day counting convention
> --constant=RATE constant interest rate
> --annual-schedule=SCHEDULE schedule of annual interest rates.
> syntax: '[(Date1,Rate1),(Date2,Rate2),...]'
> --annual=RATE annual interest rate
> --bgb288 compute interest according to German BGB288
Source-Repository head
Type: git
Location: https://github.com/peti/hledger-interest.git
Executable hledger-interest
default-language: Haskell2010
Main-is: Main.hs
Build-depends: base >= 3 && < 5, hledger-lib >= 1.26 && < 1.41, time, mtl, Cabal, Decimal, text
other-modules: Hledger.Interest
Hledger.Interest.DayCountConvention
Hledger.Interest.Rate
Paths_hledger_interest