2023-11-14 08:27:39 +00:00
|
|
|
---
|
|
|
|
title: Hakyll
|
|
|
|
date: 2013-10-19
|
2024-10-07 17:02:14 +00:00
|
|
|
description: First post
|
2023-11-14 08:27:39 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
I decided to check out [Hakyll](http://jaspervdj.be/hakyll). It is a static
|
|
|
|
site generator written in [Haskell](http://haskell.org). It seems to be very
|
|
|
|
flexible. It allows me to write the content in a boat load of different formats
|
|
|
|
(`.html`, `.rst`, `.markdown`, …).
|
|
|
|
|
|
|
|
## Static sites
|
|
|
|
|
|
|
|
I don't feel I have a need for dynamic content at the moment. And if I do need
|
|
|
|
dynamic content, I can make a *web app* for it and configure *nginx*
|
|
|
|
appropriately. For example, if you click on the picture of [Mario](/) you should
|
|
|
|
hear a sound. This uses websockets - all visitors should hear the same sound at
|
|
|
|
(approximately) the same time.
|
|
|
|
|
|
|
|
I find static site generators appealing. They can help with the tedious parts of
|
|
|
|
creating a web site - Creating indices, templating, balancing start- and end
|
|
|
|
tags, and so on.
|
|
|
|
|
|
|
|
## Haskell
|
|
|
|
|
|
|
|
Haskell is a *pure, lazily evaluated, functional programming language*. I have
|
|
|
|
some prior experience with Haskell, but I have never been a big fan of the
|
|
|
|
language. I think it's partly because I never really started using Haskell for
|
|
|
|
anything but toy programs.
|
|
|
|
|
|
|
|
I like Hakyll so far.
|