haskell / haskell/cabal

Haddock options are duplicated

Open
#5,824 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/haddock type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When I generate documentation with `cabal new-haddock --haddock-options "--qual local"` I see the following error:

```
/opt/ghc/bin/haddock [...] --qual local --qual local
haddock: qualification option given multiple times
```

I guess haddock could be a bit more relaxed about repeated options like this. Nonetheless, `cabal` should be fixed.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `cabal new-haddock --haddock-options "--qual local"` command and trace the `new-haddock` option handling. Check where the supplied Haddock options are combined with generated options. Done means each option is passed once and the command no longer reports a repeated qualification option.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.