haskell / haskell/cabal

`--hoogle` flag of `haddock-project` makes no difference

Open
#10,630 6 comments 0 reactions 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/haddock-project re: cabal's own flags type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
I am not exactly sure what the expected outcome of `cabal haddock-project --hoogle` is, but from what I can tell, the `--hoogle` flag makes no difference at all.

**To Reproduce**
Steps to reproduce the behavior:
```bash
$ cabal haddock-project --output=docs
$ cabal haddock-project --output=docs-hoogle --hoogle
$ meld docs docs-hoogle # or any other diff tool that can diff directories
```

**Expected behavior**
`--hoogle` flag should have an effect

**System information**
- Operating system: NixOS
- `cabal`: 3.12.1.0
- `ghc`: 9.6.5

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the two `cabal haddock-project` commands and compare the `docs` and `docs-hoogle` directories. Trace the `--hoogle` handling from the `haddock-project` command entry point, then add coverage showing that the flag changes the generated output; the expected behavior still needs clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.