haskell / haskell/cabal

Cabal ignores c-sources when compiling modules with signatures

Open
#4,579 5 comments 0 reactions 1 assignee Claimed by @ezyang View on GitHub
Cabal: Backpack
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Basically what it says above. If you try to build a package that exports signatures *and* has some C source to compile, the latter gets completely ignored. Interestingly, it doesn't even do file existence checks.

The simplest way to see this is to just add `c-sources: applejack` to the end of the str-sig package's cabal file. This gets ignored, and the package compiles normally.

I've been testing this against cabal 2.0 head, or `5a7da47c`.

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.