Improve cabal hacking experience (#215)

* Add standard haskell gitignore entries

* Add cradles for using HLS with Cabal

Co-authored-by: David Himmelstrup <lemmih@gmail.com>
This commit is contained in:
Drew Fenwick 2021-09-11 10:43:41 +01:00 committed by GitHub
commit aadf8dcee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 4 deletions

24
.gitignore vendored
View file

@ -1 +1,23 @@
.stack-work
dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*

View file

@ -1,11 +1,20 @@
cradle:
multi:
- path: "./src"
config: {cradle: {stack: {component: "reanimate:lib"}} }
config:
cradle:
stack: {component: "reanimate:lib"}
cabal: {component: "lib:reanimate"}
- path: "./videos"
config: {cradle: {stack: {component: "reanimate:lib"}} }
config:
cradle:
stack: {component: "reanimate:lib"}
cabal: {component: "lib:reanimate"}
- path: "./examples"
config: {cradle: {stack: {component: "reanimate:lib"}} }
config:
cradle:
stack: {component: "reanimate:lib"}
cabal: {component: "lib:reanimate"}
- path: "./test"
config: {cradle: {none: }}
- path: "./discord-bot"