1. 14

Ensuring that the code you include in a blog post is up to date and works can be a bit of a pain. Often I’ll change code while writing a post and then I have to find and copy anything that has changed. This is manual and error prone.

Fortunately Hakyll is reasonably easy to customise. Here I’ll show one way to write a hakyll compiler to help with this issue.

  1.  

  2. 2

    Neat! I’m guessing I could use this with other languages too, like Rust?

    1. 2

      Skeptic works well for Rust. I used it to write tests for a slide deck :-)