51

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?

Petr
  • 62,528
  • 13
  • 153
  • 317
  • 2
    Looks related to [this](https://ghc.haskell.org/trac/ghc/ticket/5467) GHC ticket. – bheklilr Sep 09 '14 at 14:05
  • It must be possible because in my own project, Haddock extracts _some_ documentation from TH code. See https://github.com/mounty1/JackRose/blob/master/source/Foundation.hs and http://landcroft.com/jackrose/documentation/Foundation.html -- some of those **instance**s have come from my code, but most, not. – Michael restore Monica Cellio May 12 '15 at 05:04

1 Answers1

2

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

glguy
  • 1,090
  • 7
  • 8