You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
In a library with
data-files
set in the cabal file, if we try to use a function defined in thePaths_*
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
The text was updated successfully, but these errors were encountered: