commercialhaskell/stack

Make stack kill executed process when running `stack build --file-watch --exec "foo"`

Open

#1,765 创建于 2016年2月9日

在 GitHub 查看
 (6 评论) (20 反应) (0 负责人)Haskell (848 fork)batch import
help wantedtype: enhancement

仓库指标

Star
 (4,060 star)
PR 合并指标
 (平均合并 17天 10小时) (30 天内合并 6 个 PR)

描述

When I am programming a long running application (like a web api), I'd like to have a feature where the program that has been executed after building is killed when a source code change is found.

For example, I am building an api using Servant and I would like to run it like this:

$ stack build --file-watch --exec "stack exec -- my-api"

Everytime I change one of my source files, it would be nice if stack automatically killed and restarted my-api.

Currently stack just waits until my-api is finished running (which never happens).

贡献者指南