-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
"With-packages" wrapper for GHC does not wrap Haddock #36976
Comments
The slightly unfortunately named |
Well, haddock should be able to see these packages like other tools (ghc, ghc-pkg) do. |
Oh, I see, the resulting haddock is just a symlink to the generic (ghc-8.2) haddock, which does not point its -B flag at the combined set from ghcWithPackages. I wonder how difficult that would be to fix... |
Conceptually, I think it's something like this...
and the haddock wrapper in $gwh could just have that -B as its default. |
Looks like it might be as simple as adding haddock to the loop in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/with-packages-wrapper.nix#L64 Or at least something very similar that sets -B correctly. |
@mrkkrp Does this fix your issue? :) |
Please reopen if this is still a problem. :) |
Issue description
We use
haskell.packages.ghc822.ghcWithPackages
which allows to add some packages to GHC installation so they are always visible. This works withghc
,ghci
,ghc-pkg
, but does not work forhaddock
because it's not wrapped, and so non-built-in packages are not visible to it.Steps to reproduce
Put the following in a file called
haddock-not-wrapped.nix
:Then execute:
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: