;dev: lotcostp: cleanup

This commit is contained in:
Simon Michael 2023-11-23 08:45:34 -10:00
parent b4a6212453
commit 96f9c1d2b2
2 changed files with 2 additions and 1 deletions

View File

@ -960,7 +960,7 @@ lotcostp =
char '{'
doublebrace <- option False $ char '{' >> pure True
lift skipNonNewlineSpaces
_fixed <- fmap isJust $ optional $ lift skipNonNewlineSpaces >> char '='
_fixed <- fmap isJust $ optional $ char '='
lift skipNonNewlineSpaces
_a <- simpleamountp False
lift skipNonNewlineSpaces

View File

@ -76,6 +76,7 @@ type TextParser m a = ParsecT HledgerParseErrorData Text m a
-- and current parser state (position and next input).
-- See also: Hledger.Utils.Debug, megaparsec's dbg.
-- Uses unsafePerformIO.
-- XXX Can be hard to make this evaluate.
traceOrLogParse :: String -> TextParser m ()
traceOrLogParse msg = do
pos <- getSourcePos