alanz / ghc-exactprint

GHC version of haskell-src-exts exactPrint
BSD 3-Clause "New" or "Revised" License
70 stars 32 forks source link

Deal with haddock comments with GHC option -haddock #126

Closed alanz closed 1 year ago

alanz commented 1 year ago

The haddock comments appear mostly twice, once as "normal" comments, except structured as haddock comments, and the valid ones are inserted into the AST using HsDocTy.

Because we do not have a guarantee that all the comments get allocated, we ignore the in-tree allocated haddock comments and work only with the normal ones.

Closes #125