Make `TOCMaker.hs` functional.