haskell / haskell/cabal

cabal haddock fails for foreign libraries

Open
#4,215 8 comments 0 reactions 1 assignee Claimed by @abooij View on GitHub
Cabal: cmd/haddock Cabal: stanza/foreign-library type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When building the docs for the package in `cabal-testsuite/PackageTests/ForeignLibs`:

```
$ cabal haddock
Resolving dependencies...
Configuring my-foreign-lib-0.1.0.0...
Running Haddock for my-foreign-lib-0.1.0.0...
Preprocessing library my-foreign-lib-0.1.0.0...
Haddock coverage:
0% ( 0 / 2) in 'MyForeignLib.AnotherVal'
Missing documentation for:
Module header
anotherVal (src/MyForeignLib/AnotherVal.hs:3)
Documentation created: dist/doc/html/my-foreign-lib/index.html
Preprocessing foreign library 'myforeignlib' for my-foreign-lib-0.1.0.0...
ppHsc2hs: broken closure: []
CallStack (from HasCallStack):
error, called at ./Distribution/Simple/PreProcess.hs:457:17 in
Cabal-1.25.0.0-LJMdZv6ScFWHI53bE5EyDD:Distribution.Simple.PreProcess
```

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.