mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
tracewith
This commit is contained in:
parent
1570b4efcb
commit
43549704c0
@ -230,6 +230,9 @@ strace a = trace (show a) a
|
||||
ltrace :: Show a => String -> a -> a
|
||||
ltrace l a = trace (l ++ ": " ++ show a) a
|
||||
|
||||
-- | trace an expression using a custom show function
|
||||
tracewith f e = trace (f e) e
|
||||
|
||||
-- parsing
|
||||
|
||||
parsewith :: Parser a -> String -> Either ParseError a
|
||||
|
Loading…
Reference in New Issue
Block a user