From e6cec44d9763ce2928c4643089e0a0ccc300f6fd Mon Sep 17 00:00:00 2001
From: Elie Michel <elie.michel@exppad.com>
Date: Mon, 6 May 2024 23:14:58 +0200
Subject: [PATCH] Force using a version of tls older than 2

This fixes the issue of getting the following error while downloading
package list:

    InternalException (HandshakeFailed (Error_Protocol "peer does not support Extended Main Secret" HandshakeFailure))
---
 elm.cabal | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elm.cabal b/elm.cabal
index 144fada90..b2cff45ae 100644
--- a/elm.cabal
+++ b/elm.cabal
@@ -229,6 +229,7 @@ Executable elm
         snap-server,
         template-haskell,
         time,
+        tls < 2,
         unordered-containers,
         utf8-string,
         vector,