aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/using-the-pandoc-api.md6
-rw-r--r--src/Text/Pandoc/Class/PandocMonad.hs2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/using-the-pandoc-api.md b/doc/using-the-pandoc-api.md
index dbedefaa2..df9380313 100644
--- a/doc/using-the-pandoc-api.md
+++ b/doc/using-the-pandoc-api.md
@@ -120,7 +120,7 @@ getVerbosity :: PandocMonad m => m Verbosity
-- | Set the verbosity level.
setVerbosity :: PandocMonad m => Verbosity -> m ()
--- Get the accomulated log messages (in temporal order).
+-- Get the accumulated log messages (in temporal order).
getLog :: PandocMonad m => m [LogMessage]
getLog = reverse <$> getsCommonState stLog
@@ -337,7 +337,7 @@ use `throwError`.
In addition to errors, which stop execution of the conversion
pipeline, one can generate informational messages.
Use `report` from [Text.Pandoc.Class] to issue a `LogMessage`.
-For a list of cosntructors for `LogMessage`, see
+For a list of constructors for `LogMessage`, see
[Text.Pandoc.Logging]. Note that each type of log message
is associated with a verbosity level. The verbosity level
(`setVerbosity`/`getVerbosity`) determines whether the report
@@ -432,7 +432,7 @@ structure and calling this function.
1. Pandoc's parsers can exhibit pathological behavior on some
inputs. So it is always a good idea to wrap uses of pandoc
in a timeout function (e.g. `System.Timeout.timeout` from `base`)
- to prevent DOS attacks.
+ to prevent DoS attacks.
2. If pandoc generates HTML from untrusted user input, it is
always a good idea to filter the generated HTML through
diff --git a/src/Text/Pandoc/Class/PandocMonad.hs b/src/Text/Pandoc/Class/PandocMonad.hs
index 1903d73d8..374da161b 100644
--- a/src/Text/Pandoc/Class/PandocMonad.hs
+++ b/src/Text/Pandoc/Class/PandocMonad.hs
@@ -160,7 +160,7 @@ setVerbosity verbosity =
getVerbosity :: PandocMonad m => m Verbosity
getVerbosity = getsCommonState stVerbosity
--- | Get the accomulated log messages (in temporal order).
+-- | Get the accumulated log messages (in temporal order).
getLog :: PandocMonad m => m [LogMessage]
getLog = reverse <$> getsCommonState stLog