diff --git a/hledger-lib/Hledger/Utils/Debug.hs b/hledger-lib/Hledger/Utils/Debug.hs index 357fe02fa..03f3990ae 100644 --- a/hledger-lib/Hledger/Utils/Debug.hs +++ b/hledger-lib/Hledger/Utils/Debug.hs @@ -35,6 +35,9 @@ ppShow :: Show a => a -> String ppShow = show #endif +pprint :: Show a => a -> IO () +pprint = putStrLn . ppShow + -- | Trace (print on stdout at runtime) a showable value. -- (for easily tracing in the middle of a complex expression)