haskell / haskell/cabal

`cabal haddock --haddock-for-hackage --enable-doc` failed with `ghc-9.2.4`

Open
#8,553 3 comments 0 reactions 0 assignees View on GitHub
Cabal: cmd/haddock platform: windows resolution: not our bug status: consider closing
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
While building documenation for hackage for the project with `case-insensitive` in build-depends I've got the following error:
```
haddock: internal error: C:\Cabal\store\ghc-9.2.4\case-insensit_-1.2.1.0-c5e15b8a1dff4c5e3677e9ed014cacac260e8dc1\share\doc\html\doc-index.json: openBinaryFile: does not exist (No such file or directory)
```
**To Reproduce**
- init a cabal project with library
- remove base version bounds
- add `case-insensitive` to `build-depends`
- run `cabal haddock --haddock-for-hackage --enable-doc --with-compiler=ghc-9.2.4`

It works fine if you disable one of the options `--haddock-for-hackage` or `--enable-doc` or change ghc version to `ghc-8.10.7` or if I exclude `case-insensitive` from dependencies

**Expected behavior**
Documentation should be successfully build, as for `ghc-8.10.7`

**System information**
- Operating system: `Windows 10`
- cabal-install version 3.6.2.0
- ghc-version: ghc-9.2.4

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.