Merkle trees in Haskell

Posted on April 28, 2020

I sat down to implement a (simple and not necessarily very efficient) Merkle tree in Haskell (as one does) and realised that it is a model example of the elegance of recursion schemes so I leave the full code below.

Aside from the surprising number of imports, I don’t think it gets much more concise than that!