commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Fix #5925 Add file-watch-hook for post-processing #6597

Closed mpilgrem closed 2 days ago

mpilgrem commented 1 month ago

Please also shortly describe how you tested your change. Bonus points for added tests!

This is draft while testing on different operating systems.

mpilgrem commented 1 month ago

--file-watch is now misbehaving. I think this because I lifted the withConfig up out of the inner (because fileWatchConf itself needed access to the file-watch-hook configuration). I'll reverse that.