Add bin/hoogle

This commit is contained in:
Sridhar Ratnakumar 2022-05-17 14:48:03 -04:00
parent d65849a193
commit 4a93410b77
3 changed files with 7 additions and 1 deletions

View file

@ -43,6 +43,7 @@ git add . && git commit -m rename
- Run `nix flake update` to update all flake inputs.
- Run `treefmt` in nix shell to autoformat the project. This uses [treefmt](https://github.com/numtide/treefmt), which uses `./treefmt.toml` (where fourmolu and nixpkgs-fmt are specified).
- Run `bin/hoogle` to start Hoogle with packages in your cabal file.
## Alternatives

5
bin/hoogle Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#! nix-shell -j auto ../shell.nix -i bash
set -xe
echo http://127.0.0.1:8888
hoogle serve -p 8888 --local

View file

@ -41,7 +41,7 @@
inherit returnShellEnv;
name = "haskell-template";
root = ./.;
withHoogle = false;
withHoogle = true;
overrides = self: super: with pkgs.haskell.lib; {
# Use callCabal2nix to override Haskell dependencies here
# cf. https://tek.brick.do/K3VXJd8mEKO7