hakyll-convert (the executable) contains an important function savePost that writes posts to disk. We need to ensure its correctness, so we have to write tests for it. To achieve that, the function must be moved into the hakyll-convert (the library).
hakyll-convert
(the executable) contains an important functionsavePost
that writes posts to disk. We need to ensure its correctness, so we have to write tests for it. To achieve that, the function must be moved into thehakyll-convert
(the library).https://github.com/Minoru/hakyll-convert/blob/202bacb8896019ce9b9b20f8271390c0950b7674/app/hakyll-convert.hs#L115-L117