From 1fe450e89a914bb40ad1efa53fc15b881c686544 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 17 Aug 2017 11:00:48 -0400 Subject: fix build with old http-client versions --- Utility/Url.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Utility') diff --git a/Utility/Url.hs b/Utility/Url.hs index d49953c55..e1a21af5d 100644 --- a/Utility/Url.hs +++ b/Utility/Url.hs @@ -50,6 +50,11 @@ closeManager :: Manager -> IO () closeManager _ = return () #endif +#if ! MIN_VERSION_http_client(0,5,0) +responseTimeoutNone :: Maybe Int +responseTimeoutNone = Nothing +#endif + managerSettings :: ManagerSettings #if MIN_VERSION_http_conduit(2,1,7) managerSettings = tlsManagerSettings -- cgit v1.2.3