Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Add a Haddock option for MagicHash #1562

Open
nfrisby opened this issue Dec 29, 2022 · 0 comments
Open

Add a Haddock option for MagicHash #1562

nfrisby opened this issue Dec 29, 2022 · 0 comments

Comments

@nfrisby
Copy link

nfrisby commented Dec 29, 2022

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant