Skip to content

Commit 60d33dc

Browse files
committed
Add tentative cabal support
1 parent 5712cc5 commit 60d33dc

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
*.imports
88

99
# Dirs
10+
.direnv
11+
.stack-work
1012
bin
1113
dist
12-
vendor
13-
.stack-work
14-
.direnv
14+
dist-newstyle
1515
result
16+
vendor
1617

1718
# CTAGS
1819
TAGS

cabal.project

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- Writing environment files prevents reproducible builds.
2+
write-ghc-environment-files: never
3+
4+
-- O1 by default. You can override this locally via:
5+
-- cabal configure --disable-optimization
6+
optimization: 1
7+
8+
-- Local packages.
9+
packages:
10+
examples/
11+
lib/gogol/
12+
lib/gogol-core/
13+
14+
optional-packages:
15+
gen/
16+
lib/services/*/

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
nativeBuildInputs = [
105105
# Tools specific to the GHC version.
106106
ghc
107+
haskellPackages.cabal-install
107108
haskellPackages.haskell-language-server
108109

109110
# The stack wrapper that uses the shell's GHC version.

0 commit comments

Comments
 (0)