lib: clarify

This commit is contained in:
Simon Michael 2018-07-14 10:57:05 +01:00
parent acff169dba
commit 2fbebc6c64

View File

@ -30,12 +30,12 @@ prices opts j = do
let cprices = concatMap postingCosts . allPostings $ j
icprices = concatMap postingCosts . mapAmount invertPrice . allPostings $ j
printPrices = mapM_ (putStrLn . showPrice)
forBoolOpt opt | boolopt opt $ rawopts_ opts = id
ifBoolOpt opt | boolopt opt $ rawopts_ opts = id
| otherwise = const []
allPrices = sortOn mpdate . concat $
[ jmarketprices j
, forBoolOpt "costs" cprices
, forBoolOpt "inverted-costs" icprices
, ifBoolOpt "costs" cprices
, ifBoolOpt "inverted-costs" icprices
]
printPrices allPrices