Stack has
stack build --file-watch
which automatically recompiles a Haskell project whenever files change. Does nix have something analogous with nix-build
, or is there a well-known tool which can help achieve these?
Stack has
stack build --file-watch
which automatically recompiles a Haskell project whenever files change. Does nix have something analogous with nix-build
, or is there a well-known tool which can help achieve these?
Nix does not provide this functionality by itself. Lorri comes close, but its focus is on providing an instant "nix-shell" via direnv. It is not currently suitable for building and testing your project like stack build --file-watch
does. If you're interested, you could create an issue to discuss such a feature with the authors.