@@ -92,14 +92,13 @@ docToJATS opts (Pandoc meta blocks) = do
9292 Nothing -> NullVal
9393 Just day ->
9494 let (y,m,d) = toGregorian day
95− in MapVal . Context
96− . M.insert ("year" :: Text) (SimpleVal $ text $ show y)
97− . M.insert "month" (SimpleVal $ text $ show m)
98− . M.insert "day" (SimpleVal $ text $ show d)
99− . M.insert "iso-8601"
100− (SimpleVal $ text $
95+ in MapVal . Context $ M.fromList
96+ [("year" :: Text, SimpleVal $ text $ show y)
97+ ,("month", SimpleVal $ text $ show m)
98+ ,("day", SimpleVal $ text $ show d)
99+ ,("iso-8601", SimpleVal $ text $
101100 formatTime defaultTimeLocale "%F" day)
102− $ mempty
101+ ]
103102 Just x -> x
104103 let context = defField "body" main
105104 $ defField "back" back