aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Logging.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Logging.hs')
-rw-r--r--src/Text/Pandoc/Logging.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Logging.hs b/src/Text/Pandoc/Logging.hs
index efd2188f1..438dd4351 100644
--- a/src/Text/Pandoc/Logging.hs
+++ b/src/Text/Pandoc/Logging.hs
@@ -43,7 +43,7 @@ data Verbosity = ERROR | WARNING | INFO
deriving (Show, Read, Eq, Data, Enum, Ord, Bounded, Typeable, Generic)
instance ToJSON Verbosity where
- toJSON x = toJSON (show x)
+ toJSON x = toJSON (show x :: Text)
instance FromJSON Verbosity where
parseJSON (String t) =
case t of
@@ -108,7 +108,7 @@ data LogMessage =
instance ToJSON LogMessage where
toJSON x = object $
"verbosity" .= toJSON (messageVerbosity x) :
- "type" .= toJSON (show $ toConstr x) :
+ "type" .= toJSON (show (toConstr x) :: Text) :
case x of
SkippedContent s pos ->
["contents" .= s,