From 4e8aa1cc9359a9dbd54585763393af5a46349de0 Mon Sep 17 00:00:00 2001
From: Joachim Breitner <mail@joachim-breitner.de>
Date: Wed, 29 Dec 2021 20:50:37 +0100
Subject: [PATCH] Improve Haskell example

as proposed in https://github.com/actions/cache/issues/555
---
 examples.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples.md b/examples.md
index 7db0ff8..394dd1d 100644
--- a/examples.md
+++ b/examples.md
@@ -168,8 +168,8 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
       ~/.cabal/packages
       ~/.cabal/store
       dist-newstyle
-    key: ${{ runner.os }}-${{ matrix.ghc }}
-```
+    key: cabal-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
+    restore-keys: cabal-${{ runner.os }}-${{ matrix.ghc }}-```
 
 ## Java - Gradle