I have a highlight.js download in the repo, that should be a larger download that also contains rules for other languages (they have more languages, but I doubt cabal files are in there).
Then set the right syntax based on file extension (?), and that might just be enough.
As suggested by DigitalKiwi