File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1
1
This file contains a summary of changes to Haskell.nix and ` nix-tools `
2
2
that will impact users.
3
3
4
+ ## Jun 5, 2024
5
+
6
+ Haskell.nix now respects the ` pre-existing ` packages selected
7
+ by the cabal planner. The selection made by the planner
8
+ is used to set ` nonReinstallablePkgs ` .
9
+
10
+ Instead setting ` nonReinstallablePkgs ` and ` reinstallableLibGhc `
11
+ haskell.nix projects should add ` constraints ` to the cabal project.
12
+
13
+ For instance to force the use of the ` pre-exising ` ` text `
14
+ package add:
15
+
16
+ ```
17
+ constraints: text installed
18
+ ```
19
+
20
+ To make sure ` text ` is reinstalled use:
21
+
22
+ ```
23
+ constraints: text source
24
+ ```
25
+
26
+ The ` pre-existing ` ` ghc ` will now be used by default as
27
+ that is what ` cabal ` will choose (haskell.nix used to choose
28
+ ` reinstallableLibGhc=true ` by default).
29
+
30
+ To allow cabal to choose reinstalling ` ghc ` add:
31
+
32
+ ```
33
+ allow-boot-library-installs: True
34
+ ```
35
+
36
+ To force cabal to choose reinstalling:
37
+
38
+ ```
39
+ constraints: ghc source
40
+ allow-boot-library-installs: True
41
+ ```
42
+
43
+ It may also need ` allow-newer: ghc:Cabal `
44
+
4
45
## Mar 27, 2023
5
46
6
47
Haskell.nix will no longer parse the ` cabal.project ` file to
You can’t perform that action at this time.
0 commit comments