File tree Expand file tree Collapse file tree 1 file changed +31
-7
lines changed Expand file tree Collapse file tree 1 file changed +31
-7
lines changed Original file line number Diff line number Diff line change
1
+ # This shell.nix file is designed for use with cabal build
2
+ # It aims to leverage the nix cache in as much as possible
3
+ # It does not aim to replace Cabal/Stack with Nix
4
+
5
+ # Before making changes, ensure that the Nix expression works
6
+ # for all the GHC versions supported by the project (8.6.x - 8.10.x)
7
+
1
8
{ sources ? import nix/sources.nix ,
2
9
nixpkgs ? import sources . nixpkgs { } ,
3
10
compiler ? "default"
@@ -8,10 +15,21 @@ let haskellPackagesForProject = if compiler == "default"
8
15
then haskellPackages . ghcWithPackages
9
16
else haskell . packages . ${ compiler } . ghcWithPackages ;
10
17
11
- # these packages fail to build with ghc8101
12
- extraPackages = p : if compiler == "ghc8101"
13
- then [ ]
14
- else [ p . haskell-lsp p . lsp-test ] ;
18
+ extraPackages = p : with p ;
19
+ if compiler == "ghc8101" then
20
+ [ conduit-extra
21
+ conduit-parse
22
+ hie-bios
23
+ yaml
24
+ ]
25
+ else if compiler == "ghc865" then [ ] else
26
+ # compiler = ghc88
27
+ [ haskell-lsp
28
+ lsp-test
29
+ brittany
30
+ ormolu
31
+ stylish-haskell
32
+ ] ;
15
33
16
34
compilerWithPackages = haskellPackagesForProject ( p :
17
35
with p ;
@@ -21,8 +39,6 @@ let haskellPackagesForProject = if compiler == "default"
21
39
base16-bytestring
22
40
blaze-builder
23
41
blaze-markup
24
- conduit-extra
25
- conduit-parse
26
42
cryptohash-sha1
27
43
data-default
28
44
data-default-class
@@ -34,14 +50,19 @@ let haskellPackagesForProject = if compiler == "default"
34
50
floskell
35
51
fuzzy
36
52
generic-deriving
53
+ ghc-check
37
54
gitrev
38
55
Glob
56
+ haddock-library
39
57
happy
40
58
haskell-src-exts
41
59
hslogger
42
60
hspec
61
+ HsYAML-aeson
43
62
lens
63
+ megaparsec
44
64
network
65
+ opentelemetry
45
66
optparse-simple
46
67
QuickCheck
47
68
parsers
@@ -55,16 +76,19 @@ let haskellPackagesForProject = if compiler == "default"
55
76
safe-exceptions
56
77
shake
57
78
sorted-list
79
+ strict
58
80
tasty
81
+ tasty-ant-xml
82
+ tasty-expected-failure
59
83
tasty-golden
60
84
tasty-hunit
61
85
tasty-rerun
62
86
temporary
63
87
text
64
88
typed-process
89
+ unix-compat
65
90
unordered-containers
66
91
xml
67
- yaml
68
92
zlib
69
93
] ++ extraPackages p ) ;
70
94
in
You can’t perform that action at this time.
0 commit comments