The hakyll site has a tutorial that says how to deploy the site and also use it as the source
https://jaspervdj.be/hakyll/tutorials/github-pages-tutorial.html
The idea essentially is that the master branch is kept for the generated files and the source is in an auxilary branch (develop). This works like charm.