From 704323ecd6f0cec5b7ddd9e155599cbea2ae3cdb Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Fri, 26 Jun 2020 13:21:19 +0200 Subject: [PATCH] Add cabal.project, only .gitignore cabal.project.local This prevents accidental surprises like the one I've managed to hit today - `git worktree add master` and building in master directory tries to look-up `cabal.project` but only discovers one in parent directory and starts reusing `dist-newstyle` for the build. Better to have this explicit which devs can also use as a template to add other temporary deps. --- .gitignore | 2 +- cabal.project | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 cabal.project diff --git a/.gitignore b/.gitignore index 6eaf981..6191459 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ /nix-test-eval* /nix/ TAGS -cabal.project* +cabal.project.local ctags dist-newstyle result* diff --git a/cabal.project b/cabal.project new file mode 100644 index 0000000..ea07211 --- /dev/null +++ b/cabal.project @@ -0,0 +1,2 @@ +packages: + ./hnix.cabal