From c1f5f3fa67fe2bf62a0810cf9f338ac7b0999084 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 12 Apr 2020 22:17:50 -0700
Subject: [PATCH] Improve linux caching for ci.

---
 .github/workflows/ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 20713875b..87af0978e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -67,8 +67,8 @@ jobs:
         path: ~/.cabal
         key: ${{ runner.os }}-cabal-global-${{ hashFiles('cabal.project') }}
         restore-keys: |
-          ${{ runner.os }}-cabal-global
-          ${{ runner.os }}-cabal
+          ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global
+          ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal
 
     - name: Install dependencies
       run: |