Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link failure with cabal haddock, data-files, and annotations. #5594

Open
Taneb opened this issue Sep 26, 2018 · 3 comments
Open

Link failure with cabal haddock, data-files, and annotations. #5594

Taneb opened this issue Sep 26, 2018 · 3 comments

Comments

@Taneb
Copy link

Taneb commented Sep 26, 2018

In a library with data-files set in the cabal file, if we try to use a function defined in the Paths_* generated module in an {-# ANN module #-} annotation, cabal haddock fails with a hard to understand GHCi linker error.

This is the case with cabal-install 2.2 and 2.4

This gist has an example

@23Skidoo
Copy link
Member

Can this be a Haddock bug?

@harpocrates
Copy link
Collaborator

Can this be a Haddock bug?

I'll investigate and report back. I fear it might be...

@harpocrates
Copy link
Collaborator

Conveniently stumbled across https://ghc.haskell.org/trac/ghc/ticket/14829, which has some useful information. I'm increasingly convinced this bug is related to the flags with which Haddock is invoking GHC. Let's not close this issue just yet though - it might be a case of Cabal passing the right arguments for Haddock to forward to GHC.

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

No branches or pull requests

3 participants