commercialhaskell/stack

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

Open

#3915 aperta il 12 mar 2018

Vedi su GitHub
 (5 commenti) (3 reazioni) (0 assegnatari)Haskell (848 fork)batch import
help wantedneed confirmation

Metriche repository

Star
 (4060 star)
Metriche merge PR
 (Merge medio 14h 21m) (12 PR mergiate in 30 g)

Descrizione

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

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

Guida contributor