lib: clarify
This commit is contained in:
parent
acff169dba
commit
2fbebc6c64
@ -30,12 +30,12 @@ prices opts j = do
|
|||||||
let cprices = concatMap postingCosts . allPostings $ j
|
let cprices = concatMap postingCosts . allPostings $ j
|
||||||
icprices = concatMap postingCosts . mapAmount invertPrice . allPostings $ j
|
icprices = concatMap postingCosts . mapAmount invertPrice . allPostings $ j
|
||||||
printPrices = mapM_ (putStrLn . showPrice)
|
printPrices = mapM_ (putStrLn . showPrice)
|
||||||
forBoolOpt opt | boolopt opt $ rawopts_ opts = id
|
ifBoolOpt opt | boolopt opt $ rawopts_ opts = id
|
||||||
| otherwise = const []
|
| otherwise = const []
|
||||||
allPrices = sortOn mpdate . concat $
|
allPrices = sortOn mpdate . concat $
|
||||||
[ jmarketprices j
|
[ jmarketprices j
|
||||||
, forBoolOpt "costs" cprices
|
, ifBoolOpt "costs" cprices
|
||||||
, forBoolOpt "inverted-costs" icprices
|
, ifBoolOpt "inverted-costs" icprices
|
||||||
]
|
]
|
||||||
|
|
||||||
printPrices allPrices
|
printPrices allPrices
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user