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.
This commit is contained in:
Richard Marko 2020-06-26 13:21:19 +02:00 committed by Anton Latukha
parent 220209c090
commit 704323ecd6
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -7,7 +7,7 @@
/nix-test-eval*
/nix/
TAGS
cabal.project*
cabal.project.local
ctags
dist-newstyle
result*

2
cabal.project Normal file
View File

@ -0,0 +1,2 @@
packages:
./hnix.cabal