Earlier quoted context omitted.
Would it make sense to make the code Literate Haskell?
I'm not familiar with Literate Haskell, what would that involve?
The idea is that you write a "Book" and the program is extracted, from the book.
Literate Programming Wikipedia: https://en.wikipedia.org/wiki/Literate_programming
A nice talk about it: https://youtu.be/Av0PQDVTP4A