hledger-2

In HLegder, users can get accumulated information of their financial accounts. Specifically with ROI, when iterating over the elements of an account, the elements where not checked to be zero before division. The fix is to filter (heading) zeroes.

ghc-version: 8.10.7

hasbugs-version: 1.0.0

license:

build-framework: stack

Repository
GitHub Artifacts :

Faults @7063eba1

[
  {
    "endline": 175,
    "file": "./hledger/Hledger/Cli/Commands/Roi.hs",
    "function": "timeWeightedReturn",
    "module": "Hledger.Cli.Commands.Roi",
    "startline": 173
  }
]

Fixes @75fc6767

[
  {
    "class": "Hledger.Cli.Commands.Roi",
    "endline": 182,
    "file": "./hledger/Hledger/Cli/Commands/Roi.hs",
    "function": "timeWeightedReturn",
    "startline": 175
  }
]