@@ -164,7 +164,7 @@ headlineToHeaderWithList :: Monad m => Headline -> OrgParser m Blocks
164headlineToHeaderWithList hdln@(Headline {..}) = do
164headlineToHeaderWithList hdln@(Headline {..}) = do
165 maxHeadlineLevels <- getExportSetting exportHeadlineLevels
165 maxHeadlineLevels <- getExportSetting exportHeadlineLevels
166 header <- headlineToHeader hdln
166 header <- headlineToHeader hdln
167− listElements <- sequence (map headlineToBlocks headlineChildren)
167+ listElements <- mapM headlineToBlocks headlineChildren
168 let listBlock = if null listElements
168 let listBlock = if null listElements
169 then mempty
169 then mempty
170 else B.orderedList listElements
170 else B.orderedList listElements
@@ -182,7 +182,7 @@ headlineToHeaderWithList hdln@(Headline {..}) = do
182headlineToHeaderWithContents :: Monad m => Headline -> OrgParser m Blocks
182headlineToHeaderWithContents :: Monad m => Headline -> OrgParser m Blocks
183headlineToHeaderWithContents hdln@(Headline {..}) = do
183headlineToHeaderWithContents hdln@(Headline {..}) = do
184 header <- headlineToHeader hdln
184 header <- headlineToHeader hdln
185− childrenBlocks <- mconcat <$> sequence (map headlineToBlocks headlineChildren)
185+ childrenBlocks <- mconcat <$> mapM headlineToBlocks headlineChildren
186 return $ header <> headlineContents <> childrenBlocks
186 return $ header <> headlineContents <> childrenBlocks
188headlineToHeader :: Monad m => Headline -> OrgParser m Blocks
188headlineToHeader :: Monad m => Headline -> OrgParser m Blocks