haskell / haskell/cabal

haddock flags are not hashed

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

Description

Try (with clean store)

```
cabal haddock --enable-documentation
```

build succeeds.

Then

```
cabal haddock --enable-documentation --haddock-for-hackage
```

then fails with e.g.

```
haddock: internal error: /cabal/store/ghc-9.2.5/lattices-2.1-d73b3b45d6e9cfdff466bcdd682b8b68f15a545af43b3b9dea31c352516883bc/share/doc/html/doc-index.json: openBinaryFile: does not exist (No such file or directory)
```

---

Apparently also dependencies need to be be built differently when haddock flag changes.

---

However, if I try

```
cabal haddock --enable-documentation --haddock-quickjump
```

Then the dependencies are rebuilt.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.