Skip to content

Commit 3c13eb2

Browse files
Merge branch 'master' into revert-3286-Workflows-Updated-041019
2 parents b9a874c + 8ae21e2 commit 3c13eb2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

jekyll/_cci2/language-haskell.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
4242
name: Restore Cached Dependencies
4343
keys:
44-
- cci-demo-haskell-v1-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
44+
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
45+
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}
4546
- run:
4647
name: Resolve/Update Dependencies
4748
command: stack setup
@@ -53,7 +54,7 @@ jobs:
5354
command: stack install
5455
- save_cache:
5556
name: Cache Dependencies
56-
key: cci-demo-haskell-v1-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
57+
key: cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
5758
paths:
5859
- "/root/.stack"
5960
- ".stack-work"
@@ -114,13 +115,14 @@ compiler as specified in the `stack.yaml` config.
114115
- restore_cache:
115116
name: Restore Cached Dependencies
116117
keys:
117-
- cci-demo-haskell-v1-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
118+
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
119+
- cci-demo-haskell-v1-{{ checksum "stack.yaml" }}
118120
- run:
119121
name: Resolve/Update Dependencies
120122
command: stack setup
121123
- save_cache:
122124
name: Cache Dependencies
123-
key: cci-demo-haskell-v1-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
125+
key: cci-demo-haskell-v1-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
124126
paths:
125127
- ~/.stack
126128
- ~/.stack-work
@@ -130,7 +132,9 @@ compiler as specified in the `stack.yaml` config.
130132
Note: It's also possible to use a `cabal` build file for caching dependencies.
131133
`stack`, however, is commonly recommended, especially for those new to the Haskell ecosystem. Because this
132134
demo app leverages `stack.yaml` and `package.yaml`, we use these two files as the
133-
cache key for our dependencies. You can read more about the differences between
135+
cache key for our dependencies. `package.yaml` is more often updated than `stack.yaml` so that two keys are
136+
used to restore the cache.
137+
You can read more about the differences between
134138
`stack` and `cabal` on [The Haskell Tool Stack docs](https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/).
135139

136140
Finally, we can run our application build commands. We'll run our tests first

0 commit comments

Comments
 (0)