hledger/hledger-lib/Hledger
Simon Michael 3cf53661f3 new debug helpers; --debug=N sets debugLevel
The debug level set by `--debug[=N]` is now available to pure and
startup code as debugLevel, using unsafePerformIO.

`dbg LABEL ...` is now the go-to helper for tracing values on the
console; it produces output when the debug level is non-zero. `dbgExit`
is similar but exits immediately, avoiding further output. The
`dbgshow`, `dbgppshow` and `dbgpprint` variants allow control over the
pretty-printing method and required debug level, allowing more control
over what is displayed when.

Other cleanups: lstrace -> ltrace, pdbgAt -> pdbg, tracewith -> traceWith.
2013-12-06 13:35:50 -08:00
..
Data make most types instances of Data (and Typeable) 2013-12-06 13:19:43 -08:00
Read new debug helpers; --debug=N sets debugLevel 2013-12-06 13:35:50 -08:00
Utils also fix warnings in UTF8IOCompat 2013-04-12 16:28:29 -07:00
Data.hs query cleanups 2012-05-17 16:02:22 +00:00
Query.hs make most types instances of Data (and Typeable) 2013-12-06 13:19:43 -08:00
Read.hs parsing: read dos line endings, deprecate encoding compatibility layer 2013-04-12 16:18:20 -07:00
Reports.hs fix haddock errors in Reports.hs 2013-09-28 10:14:43 -07:00
Utils.hs new debug helpers; --debug=N sets debugLevel 2013-12-06 13:35:50 -08:00