mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
Fix warning
This commit is contained in:
@@ -82,7 +82,7 @@ instance YAML.FromYAML Term where
|
||||
parseYAML invalid = YAML.typeMismatch "Term" invalid
|
||||
|
||||
instance FromJSON Translations where
|
||||
parseJSON o@(Object hm) = do
|
||||
parseJSON o@(Object{}) = do
|
||||
xs <- parseJSON o >>= mapM addItem . M.toList
|
||||
return $ Translations (M.fromList xs)
|
||||
where addItem (k,v) =
|
||||
|
||||
Reference in New Issue
Block a user