Skip to content

Commit f2daad9

Browse files
committed
Fix #5677 Add upper bound for persistent in package.yaml
Stack advises that it should be built with Stack, but some users wish to use Cabal (the tool) to build Stack. This is possible if the upper bound on `persistent` is specified.
1 parent 80fe03c commit f2daad9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ dependencies:
9797
- casa-types
9898
- path
9999
- path-io
100-
- persistent
100+
# In order for Cabal (the tool) to build Stack, it needs to be told of the
101+
# upper bound on persistent. See
102+
# https://github.com/commercialhaskell/stack/pull/5677#issuecomment-1193318542
103+
- persistent < 2.14
101104
- persistent-sqlite
102105
- persistent-template
103106
- pretty

stack.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ library
274274
, pantry >=0.5.6
275275
, path
276276
, path-io
277-
, persistent
277+
, persistent <2.14
278278
, persistent-sqlite
279279
, persistent-template
280280
, pretty
@@ -397,7 +397,7 @@ executable stack
397397
, pantry >=0.5.6
398398
, path
399399
, path-io
400-
, persistent
400+
, persistent <2.14
401401
, persistent-sqlite
402402
, persistent-template
403403
, pretty
@@ -521,7 +521,7 @@ executable stack-integration-test
521521
, pantry >=0.5.6
522522
, path
523523
, path-io
524-
, persistent
524+
, persistent <2.14
525525
, persistent-sqlite
526526
, persistent-template
527527
, pretty
@@ -650,7 +650,7 @@ test-suite stack-test
650650
, pantry >=0.5.6
651651
, path
652652
, path-io
653-
, persistent
653+
, persistent <2.14
654654
, persistent-sqlite
655655
, persistent-template
656656
, pretty

0 commit comments

Comments
 (0)