haskell / haddock

Haskell Documentation Tool

Home Page:www.haskell.org/haddock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a Haddock option for MagicHash

nfrisby opened this issue · comments

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!