Add a Haddock option for MagicHash
nfrisby opened this issue · comments
Nicolas Frisby commented
I have a module where the code does not rely on -XMagicHash
, but the haddock comments do (eg -- | See 'foo#' for more details
).
cabal haddock
doesn't resolve those names unless I add a -XMagicHash
to the compilation. Thus, I'd prefer to write:
{-# OPTIONS_HADDOCK magic-hash #-}
so that haddock
would itself add -XMagicHash
when processing the module. Thanks!