- Build the executable:
stack build bug-repro:exe:bug-repro-exe
- Then repeat to ensure all targets are up-to-date.
- Insert a newline into
src2/Lib2.hs
and save - Re-run the above command to build the executable. Observe that files are rebuilt despite that the
lib2
sublibrary is not a dependency ofbug-repro-exe
.
- Build the executable:
cabal build bug-repro:exe:bug-repro-exe
- Then repeat to ensure all targets are up-to-date.
- Insert a newline into
src2/Lib2.hs
and save - Re-run the above command to build the executable. Observe nothing is rebuilt; only
"Up to date"
is printed.