dev:Hledger.Data.Journal: fix a recent ghc 9.6 / old base breakage

This commit is contained in:
Simon Michael 2025-09-29 19:31:49 -10:00
parent 2f007c93d2
commit 061d105fed

View File

@ -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