diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-08-17 11:00:48 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-08-17 11:00:48 -0400 |
commit | 1fe450e89a914bb40ad1efa53fc15b881c686544 (patch) | |
tree | 6931e4cad0818d9e50d6bc9b48030815e09cf677 /Utility | |
parent | 8e8e2171249208bc01a5b01b126329aae8d885af (diff) |
fix build with old http-client versions
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Url.hs | 5 |
1 files changed, 5 insertions, 0 deletions
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 |