@hackage cabal-hoogle3.16.0.0
generate hoogle database for cabal project and dependencies
Categories
License
BSD-3-Clause
Maintainer
kokobd <contact@zelinf.net>
Links
Versions
Installation
Dependencies (18)
- Cabal >=3.10 && <3.17
- Cabal-syntax >=3.10 && <3.17
- base >=4.17 && <4.23
- cabal-install >=3.10 && <3.17
- co-log-core >=0.2 && <0.4
- containers >=0.6 && <0.8 Show all…
Dependents (0)
cabal-hoogle
Like stack hoogle, but works for cabal projects. Generates hoogle database of your local packages and all dependencies.
Installation
git clone https://github.com/kokobd/cabal-hoogle.git
cd cabal-hoogle
cabal install exe:cabal-hoogle
Usage
Generate
Within your project, run:
cabal-hoogle generate
This generates a hoogle database for all the local packages and their dependencies.
You may specify targets, like below:
cabal-hoogle generate exe:haskell-language-server hls-code-range-plugin
See Cabal Docs for target syntax
Run Hoogle
With cabal-hoogle run --, extra arguments are passed directly to hoogle.
You may start an http server like this:
cabal-hoogle run -- server --local --port 9000
Or directly search in command line like this:
cabal-hoogle run -- search catMaybes
More Options
Run cabal-hoogle --help to see more options.