aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Logging.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-02-23Put makeSelfContained in PandocMonad instead of IO.John MacFarlane1-2/+14
This removes the need to pass MediaBag around and improves exceptions. It also opens up the possibility of using makeSelfContained purely.
2017-02-15Add CircularReference constructor to LogMessage.John MacFarlane1-0/+10
2017-02-11Rename logMessagesToJSON -> encodeLogMessages.John MacFarlane1-3/+3
2017-02-11Logging: export logMessagesToJSON.John MacFarlane1-0/+10
Use a deterministic order for fields.
2017-02-11Use new warnings throughout the code base.John MacFarlane1-31/+74
2017-02-10Logging: added ToJSON instance and showLogMessage.John MacFarlane1-3/+96
This gives us the possibility of both machine-readable and human-readable output for log messages. See #3392.
2017-02-10Added Text.Pandoc.Logging (exported module).John MacFarlane1-0/+76
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.