# Haskell shell setup with working hoogle - 'developPackage'

**URL:** https://discourse.nixos.org/t/haskell-shell-setup-with-working-hoogle-developpackage/48507
**Category:** Help
**Created:** [July 5, 2024, 4:18pm UTC](https://discourse.nixos.org/t/haskell-shell-setup-with-working-hoogle-developpackage/48507 "2024-07-05T16:18:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![magthe](https://discourse.nixos.org/user_avatar/discourse.nixos.org/magthe/32/1885_2.png) [@magthe](https://discourse.nixos.org/u/magthe)
#### Post date: [July 13, 2024, 3:50pm UTC](https://discourse.nixos.org/t/haskell-shell-setup-with-working-hoogle-developpackage/48507/2 "2024-07-13T15:50:54Z")

</div>

I found a way of getting an almost working setup for this:

```auto
cabal haddock --haddock-internal --haddock-quickjump --haddock-hoogle --haddock-html

hoogle_dir=$(dirname $(dirname $(readlink -f $(which hoogle))))
hoogle generate --database=local.hoo \
       $(for d in $(fd -L .txt ${hoogle_dir}); do printf "--local=%s " $(dirname $d); done) \
       --local=./dist-newstyle/build/x86_64-linux/ghc-9.8.2/pkg-0.0.1/doc/html/pkg

hoogle server --local --database=local.foo

```

The “almost working” part is that links in documentation are working.

---

_[View the full topic](https://discourse.nixos.org/t/haskell-shell-setup-with-working-hoogle-developpackage/48507)._
