From a9dc70a57f19b1901e68b149678a334761fd6e87 Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Tue, 10 Dec 2024 16:39:56 -0700 Subject: [PATCH] Enable Hoogle for local packages It is not triggering a(nother) rebuild of GHC. --- nix/haskell-nix-flake.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/nix/haskell-nix-flake.nix b/nix/haskell-nix-flake.nix index fe6c3d0a7c..2410450037 100644 --- a/nix/haskell-nix-flake.nix +++ b/nix/haskell-nix-flake.nix @@ -91,18 +91,8 @@ in defaultPackage = haskell-nix-flake.packages."unison-cli-main:exe:unison"; devShells = let - mkDevShell = pkg: - shellFor { - packages = _hpkgs: [pkg]; - ## Enabling Hoogle causes us to rebuild GHC. - withHoogle = false; - }; + mkDevShell = pkg: shellFor {packages = _hpkgs: [pkg];}; in - { - local = shellFor { - packages = _hpkgs: builtins.attrValues localPackages; - withHoogle = false; - }; - } + {local = shellFor {packages = _hpkgs: builtins.attrValues localPackages;};} // pkgs.lib.mapAttrs (_name: mkDevShell) localPackages; }