File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
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
- ## December 10, 2019
5
- * Now the ` cache ` attribute of ` stackProject ` is not required and is going to be deprecated.
6
-
7
4
## November 18, 2019
8
5
* Changed the ` cleanSourceHaskell ` to accept an attrset of ` src ` and
9
6
(optional) ` name ` parameters. This allows you to keep the source
Original file line number Diff line number Diff line change @@ -412,14 +412,17 @@ self: super: {
412
412
stackProject' =
413
413
{ ... } @args :
414
414
let stack = importAndFilterProject ( callStackToNix ( { inherit cache ; } // args ) ) ;
415
- cache = if args ? cache
416
- then builtins . trace
417
- "warning: passing `cache' to `stackProject' is deprecated. See #335 #358"
418
- args . cache
419
- else genStackCache {
420
- inherit ( args ) src ;
421
- stackYaml = args . stackYaml or "stack.yaml" ;
422
- } ;
415
+ generatedCache = genStackCache {
416
+ inherit ( args ) src ;
417
+ stackYaml = args . stackYaml or "stack.yaml" ;
418
+ } ;
419
+ cache = args . cache or ( builtins . trace
420
+ ( builtins . trace ''
421
+ Automatically generated cache for this project.
422
+ You can pass it as a cache argument to speed up builds:
423
+ ''
424
+ # Force evaluation so that tracing prints out the whole list
425
+ ( builtins . deepSeq generatedCache generatedCache ) ) generatedCache ) ;
423
426
in let pkg-set = mkStackPkgSet
424
427
{ stack-pkgs = stack . pkgs ;
425
428
pkg-def-extras = ( args . pkg-def-extras or [ ] ) ;
You can’t perform that action at this time.
0 commit comments