commercialhaskell/stack

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

Open

#1765 aperta il 9 feb 2016

Vedi su GitHub
 (6 commenti) (20 reazioni) (0 assegnatari)Haskell (848 fork)batch import
help wantedtype: enhancement

Metriche repository

Star
 (4060 star)
Metriche merge PR
 (Merge medio 17g 10h) (6 PR mergiate in 30 g)

Descrizione

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).

Guida contributor