fix: bin: Remove old function in hledger-print-location.

This commit is contained in:
Stephen Morgan 2022-03-25 16:16:33 +11:00 committed by Simon Michael
parent 1aff74f702
commit 28b52fcca5

View File

@ -43,7 +43,7 @@ main = do
addLocationTag :: Transaction -> Transaction
addLocationTag t = t{tcomment = tcomment t `commentAddTagNextLine` loctag}
where
loctag = ("location", T.pack . showSourcePosPair $ tsourcepos t)
loctag = ("location", T.pack . sourcePosPairPretty $ tsourcepos t)
-- Like showSourcePosPair in Hledger.Data.Transaction, but show just the starting line number.
showSourcePosPairLine :: (SourcePos, SourcePos) -> String