So Hakyll already has a tagsField available to add to templates, but it preformats the whole list of tags into an HTML string. I could write a custom tagsField, but I'd like to separate my concerns: have Hakyll build a list of tags for each page, then pass it to the template in a listField so that I can reference it there with a $for(tags)$ ... $tags$ ... $endfor$ block.
I'm pretty new to Hakyll, and am still a novice at Haskell in general, so I can't quite figure out the typing of my function. Any help in that direction is appreciated.
I just realized this is my own question. Oh well, here's the answer I found in case someone else needs it.
I haven't tried this, but adapting from http://mattwetmore.me/posts/hakyll-list-metadata.html:
Read the whole post to try and grok it. It should work.