{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/472","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/472/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/472/events","html_url":"https://github.com/commercialhaskell/stack/issues/472","id":92279840,"number":472,"title":"stack build --file-watch-post=<command>","user":{"login":"drwebb","id":178769,"avatar_url":"https://avatars.githubusercontent.com/u/178769?v=3","gravatar_id":"","url":"https://api.github.com/users/drwebb","html_url":"https://github.com/drwebb","followers_url":"https://api.github.com/users/drwebb/followers","following_url":"https://api.github.com/users/drwebb/following{/other_user}","gists_url":"https://api.github.com/users/drwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/drwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwebb/subscriptions","organizations_url":"https://api.github.com/users/drwebb/orgs","repos_url":"https://api.github.com/users/drwebb/repos","events_url":"https://api.github.com/users/drwebb/events{/privacy}","received_events_url":"https://api.github.com/users/drwebb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/discuss","name":"discuss","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-01T06:19:42Z","updated_at":"2015-07-02T11:10:46Z","closed_at":null,"body":"So `stack build --file-watch` is an awesome feature, something I've always wanted for about half my projects. However, often if I'm working on an executable I want my executable to fire off as well on a rebuild to regenerate the output. I'd like any feedback on adding this as a feature, I was thinking something along the lines of a `--file-watch-post=<command>`, where command is anything. Might as well tack on a `--file-watch-pre=<command>` that executes a command *before* rebuilding, e.g. stack clean. "},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/118001359","html_url":"https://github.com/commercialhaskell/stack/issues/472#issuecomment-118001359","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/472","id":118001359,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T11:10:46Z","updated_at":"2015-07-02T11:10:46Z","body":"That answer doesn't change my thoughts on generalizing the feature at all. Just because your use case only requires it work in one instance doesn't mean we shouldn't make the feature more general."}}