Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring savePost under tests #19

Closed
Minoru opened this issue Jul 28, 2020 · 0 comments · Fixed by #28
Closed

Bring savePost under tests #19

Minoru opened this issue Jul 28, 2020 · 0 comments · Fixed by #28
Assignees

Comments

@Minoru
Copy link
Owner

Minoru commented Jul 28, 2020

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).

-- | Save a post along with its comments as a mini atom feed
savePost :: Config -> String -> DistilledPost -> IO ()
savePost cfg ext post = do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant