Is it possible to generate comments to functions in Template Haskell?

HaskellCommentsTemplate HaskellGenerated Code

Haskell Problem Overview


In our project we have a lot of TH-generated functions. It'd make sense to add generic comments to them so that they are visible in Haddock/Hoogle. At the very least, something like "This has been generated by TH." Is something like that possible?

Haskell Solutions


Solution 1 - Haskell

This would be nice to have but it isn't currently possible in GHC.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPetrView Question on Stackoverflow
Solution 1 - HaskellglguyView Answer on Stackoverflow