Skip to content

ghcWithHoogle fails with only null dependencies #33592

@ElvishJerricco

Description

@ElvishJerricco

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])

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: haskellGeneral-purpose, statically typed, purely functional programming language
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions