John MacFarlane
2bbf98a613
Put makeSelfContained in PandocMonad instead of IO.
...
This removes the need to pass MediaBag around and improves
exceptions. It also opens up the possibility of using
makeSelfContained purely.
2017-02-23 15:06:25 +01:00
John MacFarlane
ebe4072bd9
Add CircularReference constructor to LogMessage.
2017-02-15 17:35:29 +01:00
John MacFarlane
48c78713c8
Rename logMessagesToJSON -> encodeLogMessages.
2017-02-11 22:58:22 +01:00
John MacFarlane
92a5445aa1
Logging: export logMessagesToJSON.
...
Use a deterministic order for fields.
2017-02-11 20:13:33 +01:00
John MacFarlane
76c55466d3
Use new warnings throughout the code base.
2017-02-11 00:14:44 +01:00
John MacFarlane
8ad7e2c21f
Logging: added ToJSON instance and showLogMessage.
...
This gives us the possibility of both machine-readable
and human-readable output for log messages.
See #3392 .
2017-02-10 22:06:07 +01:00
John MacFarlane
5e1249481b
Added Text.Pandoc.Logging (exported module).
...
This now contains the Verbosity definition previously
in Options, as well as a new LogMessage datatype that
will eventually be used instead of raw strings for
warnings.
This will enable us, among other things, to provide
machine-readable warnings if desired.
See #3392 .
2017-02-10 20:59:54 +01:00