dev:Hledger.Data.Journal: fix a recent ghc 9.6 / old base breakage
This commit is contained in:
parent
2f007c93d2
commit
061d105fed
@ -1167,7 +1167,7 @@ pivotComponent fieldortagname p
|
||||
| fieldortagname == "cost" = case amounts $ pamount p of [a@Amount{acost=Just _}] -> T.pack $ lstrip $ showAmountCost a; _ -> unknown
|
||||
| Just (_, tagvalue) <- postingFindTag fieldortagname p =
|
||||
if fieldortagname == "type"
|
||||
then either (const tagvalue) T.show $ parseAccountType True tagvalue
|
||||
then either (const tagvalue) (T.pack . show) $ parseAccountType True tagvalue
|
||||
else tagvalue
|
||||
| otherwise = unknown
|
||||
where
|
||||
|
||||
Loading…
Reference in New Issue
Block a user