commercialhaskell / commercialhaskell/stack

foreign-library source files are not tracked in file-watch

Open
#3,915 5 comments 3 reactions 0 assignees View on GitHub
help wanted need confirmation
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### General summary

If cabal file contains `foreign-library` section, its source files are not tracked with `stack build --file-watch`. Stack doesn't trigger rebuild when files change.

### Steps to reproduce

```cabal
foreign-library example
build-depends:
base
hs-source-dirs: foreign
other-modules: Example
type: native-shared
```

`stack build --file-watch`

### Expected

Rebuild when foreign/Example.hs is changed.

### Actual

Nothing.

### Stack version

```
$ stack --version
Version 1.6.5 x86_64 hpack-0.20.0
```

### Method of installation

brew

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.