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

Add a Haddock option for MagicHash #1562

@nfrisby

Description

@nfrisby

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions