haskell / haskell/cabal

ghc-pkg command fails

Open
#2,486 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I have a Cabal file that fails with:

```
In-place registering hsbag-0.1.0.0...
setup-Simple-Cabal-1.22.1.1-x86_64-linux-ghc-7.8.3: '/usr/local/bin/ghc-pkg'
exited with an error:
hsbag-0.1.0.0: Warning: Unrecognized field data-dir on line 15
hsbag-0.1.0.0: Warning: Unrecognized field key on line 4
hsbag-0.1.0.0: Warning: haddock-interfaces:
/home/omer/opt/libcds_b629/haskell/dist/dist-sandbox-fa1c82ae/doc/html/hsbag/hsbag.haddock
doesn't exist or isn't a file
hsbag-0.1.0.0: Warning: haddock-html:
/home/omer/opt/libcds_b629/haskell/dist/dist-sandbox-fa1c82ae/doc/html/hsbag
doesn't exist or isn't a directory
```

I have no ideas why it's looking for documentation file. This is happening even if I use `--disable-documentation`.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Cabal in-place registration failure using the reported hsbag-0.1.0.0 output and the --disable-documentation option. Investigate why ghc-pkg processes the haddock-interfaces and haddock-html fields; done means registration no longer fails when those documentation paths are absent or documentation is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.