packages feed

hledger-interest 1.3 → 1.4

raw patch · 3 files changed

+5/−4 lines, 3 filesdep ~hledger-lib

Dependency ranges changed: hledger-lib

Files

Hledger/Interest.hs view
@@ -51,7 +51,7 @@   let posts = [ p | p <- tpostings ts, interestAcc == paccount p ]   forM_ posts $ \p -> do     bal <- gets (balance)-    modify (\st -> st { balance = normaliseMixedAmount (bal + (pamount p)) })+    modify (\st -> st { balance = normaliseMixedAmountPreservingFirstPrice (bal + (pamount p)) })  computeInterest :: Day -> Computer () computeInterest day = do
Main.hs view
@@ -58,6 +58,7 @@  , Option []    ["constant"]    (ReqArg (\r o -> o { optRate = Just (constant (read r)) }) "RATE")  "constant interest rate"  , Option []    ["annual"]      (ReqArg (\r o -> o { optRate = Just (perAnno (read r)) }) "RATE")   "annual interest rate"  , Option []    ["bgb288"]      (NoArg (\o -> o { optRate = Just bgb288, optDCC = Just diffAct }))  "compute interest according to German BGB288"+ , Option []    ["ing-diba"]    (NoArg (\o -> o { optRate = Just ingDiba, optDCC = Just diffAct }))  "compute interest according for Ing-Diba Tagesgeld account"  ]  usageMessage :: String
hledger-interest.cabal view
@@ -1,5 +1,5 @@ Name:                   hledger-interest-Version:                1.3+Version:                1.4 Synopsis:               computes interest for a given account License:                BSD3 License-file:           LICENSE@@ -9,7 +9,7 @@ Category:               Finance Build-type:             Simple Cabal-version:          >= 1.6-Tested-with:            GHC == 6.12.3, GHC == 7.0.4, GHC == 7.2.1+Tested-with:            GHC == 6.12.3, GHC == 7.0.4, GHC == 7.4.1 Data-files:             README.md Description:  hledger-interest is a small command-line utility based on Simon@@ -112,7 +112,7 @@  Executable hledger-interest   Main-is:              Main.hs-  Build-depends:        base >= 3 && < 5, hledger-lib >= 0.14, time, mtl, Cabal+  Build-depends:        base >= 3 && < 5, hledger-lib >= 0.17, time, mtl, Cabal   other-modules:        Hledger.Interest                         Hledger.Interest.DayCountConvention                         Hledger.Interest.Rate