From 50ee9292ccc462122e2df0db6e32e68ebb05d168 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 27 Mar 2019 23:27:08 -0700
Subject: [PATCH] appveyor - save cache on error.

Hopefully this will allow new ghc builds to complete within 60 minutes,
after a try or two.
---
 appveyor.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/appveyor.yml b/appveyor.yml
index 71558077c..55e41a76b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -5,6 +5,7 @@ environment:
     WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
     CABAL_STORE: "C:\\cs"
     CABAL_PACKAGE_DB: "%CABAL_STORE%\\ghc-%GHC_MINOR_VERSION%\\package.db"
+    APPVEYOR_SAVE_CACHE_ON_ERROR: true
     # Override the temp directory to avoid sed escaping issues
     # See https://github.com/haskell/cabal/issues/5386
     TMP: "c:\\tmp"