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

ghcWithHoogle fails with only null dependencies #33592

Closed
ElvishJerricco opened this issue Jan 8, 2018 · 2 comments
Closed

ghcWithHoogle fails with only null dependencies #33592

ElvishJerricco opened this issue Jan 8, 2018 · 2 comments
Labels

Comments

@ElvishJerricco
Copy link
Contributor

If you use ghcWithHoogle, passing only null dependencies, it will crash with

error: value is null while a set was expected, at /nix/store/v8s18h7r1fxmajdzn0f1ybpyl7m2c1di-nixos-17.09.2138.48bf1f43cd/nixos/pkgs/development/haskell-modules/hoogle.nix:73:43

Example failure:

{ pkgs ? import <nixpkgs> {} }:

pkgs.haskellPackages.ghcWithHoogle (p: with p; [base bytestring])

Example success:

{ pkgs ? import <nixpkgs> {} }:

pkgs.haskellPackages.ghcWithHoogle (p: with p; [base bytestring text])
@ElvishJerricco
Copy link
Contributor Author

/cc @peti

@ElvishJerricco
Copy link
Contributor Author

This comes up especially when using callCabal2nix on a project with only core dependencies like base and bytestring which are null in haskellPackages.

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

No branches or pull requests

2 participants