This is my personal website with Hakyll, all the explanations are in my blog post.
You need to install the stack build tool first. See the official documentation for installation instructions.
On Arch Linux, just run:
pacman -S stackI'm using Laravel Mix to compile my CSS. You'll need NPM to run the scripts.
On Arch Linux, just run:
pacman -S nodejsFirst, download GHC and all the Haskell stuff:
stack setupThen, build the executable:
stack buildAnd finally, generate the website:
stack exec thibaud buildEach time you modify the Haskell files, you need to rebuild the executable with:
stack buildTo start with a clean installation, run:
stack exec thibaud rebuildThis command will clean the _site folder and rebuild all the website.
Then run the web server with:
stack exec thibaud watchThis command will trigger a rebuild each time a file is changed. To rebuild the CSS after a change, you'll need to run npm run watch.