profile
viewpoint
Dmitry Astapov adept OCaml programmer London http://dmitry.astapov.co OCaml and Haskell programmer, creator of http://pro-gsm.info, former writer and editor of @fprogru.

adept/full-fledged-hledger 203

Tutorial on Hledger setup with multi-year files, multi-source imports and a range of auto-generated reports

adept/hledger-docker 13

Docker image for hledger, hledger-web, hledger-ui, hledger-diff, hledger-interest and hledger-iadd

adept/hledger-roi 7

Hledger Return-on-investment calucator. Does time-weighted (TWR) and money-weighted (IRR) computations

adept/hledger-sankey 6

Script + html files to plot income vs expense money flows from hledger ledger

adept/hagll 4

GLL Parsing as Haskell parsing combinators

adept/graphtype 3

Graphing dependencies between Haskell types

adept/jira-blockinglinks 3

Workflow condition that allows to block transition depending on the status of linked issues

adept/greg 2

A scalable distributed logger with a high-precision global time axis

adept/haskell-mpi 2

MPI bindings for Haskell

adept/c10k 1

Network server library to handle over 10,000 connections in Haskell

pull request commentsimonmichael/hledger

fix: roi: use posting dates when available

CI error seems to be unrelated to my changes :(

adept

comment created time in 2 months

Pull request review commentsimonmichael/hledger

fix: roi: use posting dates when available

 interestSum referenceDay cf rate = sum $ map go cf   calculateCashFlow :: [Transaction] -> Query -> CashFlow-calculateCashFlow trans query = filter (maIsNonZero . snd) $ map go trans-  where go t = (transactionDate2 t, total [t] query)+calculateCashFlow trans query =+  [ (postingDate2 p, pamount p) | p <- filter (matchesPosting query) (concatMap realPostings trans), maIsNonZero (pamount p) ]

Yep, lets fix two bugs with one stone then :)

adept

comment created time in 2 months

PullRequestReviewEvent

push eventadept/hledger

Dmitry Astapov

commit sha 45994119e58ab48f8fecc1000173afbd141b9df8

fix: roi: use posting dates when available, honor --date2 This will not change the results computed for the typical use-case, just makes "roi" more thorough/consistent by supporting posting dates when they are provided.

view details

push time in 2 months

PR opened simonmichael/hledger

fix: roi: use posting dates when available

This will not change the results computed for the typical use-case, just makes "roi" more thorough/consistent by supporting posting dates when they are provided.

As far as I am aware, there are no open tickets for this

+2 -2

0 comment

1 changed file

pr created time in 2 months

push eventadept/hledger

Dmitry Astapov

commit sha 7d03463ef54a004e0f3a556df63788977de85f65

fix: roi: use posting dates when available This will not change the results computed for the typical use-case, just makes "roi" more thorough/consistent by supporting posting dates when they are provided.

view details

push time in 2 months

push eventadept/hledger

Simon Michael

commit sha 344c421a3b08c543b1cfe7d0c947cf589f547990

test: update shelltest format

view details

Simon Michael

commit sha cea8bc05585d1b9fb7f3c5717dc77fe6e2098140

test: split/rename directive tests

view details

Simon Michael

commit sha db45b13249af89e4bf60e4345276250e52e77690

test: more detailed commodity directive tests

view details

Stephen Morgan

commit sha 8fcdc22a4539b4559d6664792797cab2e432f0fc

fix: bin: Get scripts compiling with current hledger-lib.

view details

Stephen Morgan

commit sha 04c35e1519840831c36563dc6e1db32f10beb534

fix: bin: Allow hledger-check-fancyassertions to parse predicates (#1464).

view details

Stephen Morgan

commit sha 4cb631c0f2de99a609bfa6c25b0c3de1bd07bc71

fix: web: Handle non-regular postings in the add transaction form. (#1058)

view details

Stephen Morgan

commit sha 50f73b74342966619d3eca6ba63723b4a6b9cfc6

fix: balance: Show all empty accounts in flat balance reports. (#1688) Previously we only showed empty leaves.

view details

Stephen Morgan

commit sha 54c73ff7598761d4cae55152e682b29c56e5d452

ref: ui: Refactor code to eliminate requirement for change_ in UIOpts. --change is already stored in balanceaccum_ in ReportOpts, so it does not need to be stored in UIOpts too.

view details

Stephen Morgan

commit sha 09a2449f4fc5ee75e063fad25bd403e64cc24586

ref: ui: Pull register and theme options into UIOpts.

view details

Stephen Morgan

commit sha f471258a48271d57072cf59cd8edcd884bb54998

dev: ui: lens: Add classy lens instances for UIOpts and UIState.

view details

Stephen Morgan

commit sha 7f7f1a2cdfa922f9591ce210a51363e4bd6c18a7

ref: ui: lens: Use lenses in UIState, saving a lot of boilerplate.

view details

Stephen Morgan

commit sha 765466c3920409c5848ae8d8c7dec36b01e72c45

dev!: ui: Rename fields of UIOpts for consistency. In code, either replace the name with the new name, or use the lenses instead. watch_ -> uoWatch cliopts_ -> uoCliOpts

view details

Stephen Morgan

commit sha 6905e40c4d902ae7df616526805ae8fda121039d

pkg!: cli: Add --today option to explicitly set the current date. (#1674) rawOptsTo* in hledger-lib now takes a day as an argument, and does not live in the IO monad, since it's now pure. This is so that we can run tests containing future transactions that won't fail as soon as ‘the future’ actually arrives.

view details

Stephen Morgan

commit sha 3456fcb86244a6343052059a939c88d7f74c6403

test: ui: web: Use report date from _rsDay for hledger-ui and hledger-web, rather than getCurrentDay. File watching in hledger-ui continues to use getCurrentDay.

view details

Stephen Morgan

commit sha 0f205295e806fccbfce0adbbff0e0ea6dd9f51d8

pkg!: test: Use --today in Journal parsing functions.

view details

Stephen Morgan

commit sha c0053cb9ba7879c563bbe4073c5d826fb79e6329

doc: Document --today in the manual.

view details

Simon Michael

commit sha ddec2cedf331fef7efa214cfbde9e02610119c6d

;doc: update CLI usage texts

view details

Simon Michael

commit sha 7a249cffe9b4640460fac0538abef13796e4d152

;doc: update manuals

view details

Stephen Morgan

commit sha 54f2600db2e0dcb609e5e3c9d62e1d2b2202c8d9

imp: cli: Let --today option handle smart dates, determined relative to the current date.

view details

Stephen Morgan

commit sha 36f5bc9d231f134ca980a1f9c4bf4f978c2ecda4

;doc: Document --today in the manuals.

view details

push time in 2 months

issue closedsimonmichael/hledger

hledger 1.23 release on Github missing some assets

The 1.23 release on Github only includes these two assets:

  • Source code (zip)
  • Source code (tar.gz)

Usually, the Github releases include three more assets: the Linux, macOS and Windows assets.

Some of the download links in the Download page are broken because of it. For example, the Linux downloads. https://hledger.org/download.html

closed time in 2 months

Flimm

issue commentsimonmichael/hledger

hledger 1.23 release on Github missing some assets

Seems fixed!

Flimm

comment created time in 2 months

issue commentsimonmichael/hledger

hledger 1.23 release on Github missing some assets

I've downloaded hledger-linux-static-x64.zip from 1.23 release page and it seems corrupt.

% md5sum hledger-linux-static-x64.zip
fbd6c137416b9af080b1a87938de1160  hledger-linux-static-x64.zip

% file hledger-linux-static-x64.zip
hledger-linux-static-x64.zip: Zip archive data, at least v2.0 to extract

% unzip -t hledger-linux-static-x64.zip
Archive:  hledger-linux-static-x64.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of hledger-linux-static-x64.zip or
        hledger-linux-static-x64.zip.zip, and cannot find hledger-linux-static-x64.zip.ZIP, period.

Flimm

comment created time in 2 months

IssuesEvent

PR opened simonmichael/hledger_site

Docker image 1.23 is available
+1 -1

0 comment

1 changed file

pr created time in 2 months

push eventadept/hledger-docker

Dmitry Astapov

commit sha e2f7b9a5db5369c9912965d719103f5f7facea62

1.23

view details

push time in 2 months

push eventadept/hledger_site

Dmitry Astapov

commit sha 53bd503aea15a8bf0a0c8bc8441e088a92f4069d

Docker image 1.23 is available

view details

push time in 2 months

issue openedpeti/hledger-interest

Could you please update hledger-interest for new hledger release?

Hledger 1.23 was released yesterday. Could you please update hledger-interest for hledger 1.23 - it is quite possible that it would just build cleanly after a dependency constraint update.

created time in 2 months

push eventadept/hledger

Dmitry Astapov

commit sha 555a68faa52e7fc523c148b04a02732d336263e6

fix: roi: rare bug with PnL applied on the first day of investment

view details

push time in 3 months

PR opened simonmichael/hledger

fix: roi: rare bug with PnL applied on the first day of investment

Recent discussion on the mailing list uncovered a rare corner-case bug in roi which will manifest itself when someone tries to apply the PnL to the investment at the same date as it is "opened" (initially funded).

Roi applies the PnL (changes the valuation of the investment) before applying fundings/withdrawals, when they fall on the same date. This does not work when investment is still empty and PnL transaction is applied prior to the initial funding transaction.

Fix makes sure that TWR computations for the empty investment never start from applying PnL.

+29 -11

0 comment

1 changed file

pr created time in 3 months

push eventadept/hledger

Simon Michael

commit sha 691817868472da1106d481127b2abb9e94ae82aa

install: 1.22.2

view details

Simon Michael

commit sha ed7ee7a4459f348f2973d5a5618700cc9df7af29

;doc: RELEASING: mention hledger-install

view details

Lawrence Wu

commit sha f3c07144a8efad0b796fd36f72fefd03315f8632

bal: option to view one commodity per row This adds the `--commodity-column` option that displays each commodity on a separate line and the commodities themselves as a separate column. The initial design considerations are at simonmichael.hledger.issues.1559 The single-period balance report with `--commodity-column` does not interoperate with custom formats.

view details

Lawrence

commit sha 198d2211fc36b8d8f582c12f84b954515a64b709

budget: option to view one commodity per row Extension of commodity-column to budget reporting.

view details

Lawrence

commit sha 234caae5572fdb416b4db77e8f196aecc63fbe6d

doc: test: update for commodity-column Add documentation and sample output for `--commodity-column` behavior and functional tests e.g single-period balance, yearly balance, and yearly budget

view details

Lawrence

commit sha 5989ca03814118d47e981b626e29688013242812

fix: skip budget grand total and average if they look zero Makes them consistent with the remaining cells and fixes awkward alignment issue in commodity-column mode where we don't display anything

view details

Lawrence

commit sha 1be74a01ce44ef51cd3ddadf71ae0547d760e7c7

fix: bal: handle oneline for custom format correctly Previously would not actually display anything since the Cell's WideBuilders are single-element list. Just dispatch to showMixedAmountB to do the right thing.

view details

Simon Michael

commit sha 30ea4630608dd1ad55c9f5cfdbd2bff486324cdc

imp: bal: doc: --commodity-column tweaks (#1626) - promote the heading one level - periodic CSV reports are supported too - slight edits to manual and flag description

view details

Simon Michael

commit sha bf2e9f24b8981af1d5eee71fa724c3049e1e4085

;doc: update CLI usage texts

view details

Simon Michael

commit sha 04812682e822ab7fcfc6b53dc505403f23d45d9e

;doc: bump man page dates

view details

Simon Michael

commit sha d06d4ca080788bdf1a948592ada0d5476e2dd017

;doc: update manuals

view details

Simon Michael

commit sha ca474a86877c6f88063004474f592c5966e14a57

;bal: doc: --commodity-column: fix csv example (#1626) and make examples reproducible, why not.

view details

Simon Michael

commit sha 9bef817db0a31359574bee05ced10efb3b1c01c1

;bal: doc: --commodity-column: fix link (#1626)

view details

Simon Michael

commit sha bfa2ac1dcfff73d16b80f45526b9bb9f50fbde68

;doc: update CLI usage texts

view details

Simon Michael

commit sha b43a5263cb17a936f967f6711849b3fb78e7e4fc

;doc: update manuals

view details

Simon Michael

commit sha b74aa78345d338f073c1f7101c50833404c6aac1

;help: doc: clarify

view details

Simon Michael

commit sha 5c18fb289ff3906d08efaabb2e5c90058b6379c3

;dev: configure hlint, silence all current warnings

view details

Simon Michael

commit sha 1874a971dcfa1a9f0dbf06d65b9794eed09df656

;doc: clarify period expressions, report intervals

view details

Simon Michael

commit sha 7bfed72130a76c173857237e8037fdaf53ceed37

;doc: period expressions: consistent layout

view details

Simon Michael

commit sha 881785c37421f0027b9f83c913c8356b35f3717d

;doc: period expressions: tweak

view details

push time in 3 months

more