-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
Description
I think the bounds that http-client-tls has for http-client are wrong. http-client version 0.7.11 added the strippedHostName
function. http-client-tls version uses that (for example here) but claims to work with any http-client >= 0.5. This causes build errors like this:
[1 of 1] Compiling Network.HTTP.Client.TLS ( Network/HTTP/Client/TLS.hs, dist/build/Network/HTTP/Client/TLS.o, dist/build/Network/HTTP/Client/TLS.dyn_o )
Network/HTTP/Client/TLS.hs:124:39: error:
Variable not in scope:
strippedHostName
:: String -> connection-0.3.1:Network.Connection.Types.HostName
|
124 | { NC.connectionHostname = strippedHostName host
| ^^^^^^^^^^^^^^^^
Network/HTTP/Client/TLS.hs:141:39: error:
Variable not in scope:
strippedHostName
:: String -> connection-0.3.1:Network.Connection.Types.HostName
|
141 | { NC.connectionHostname = strippedHostName serverName
| ^^^^^^^^^^^^^^^^
Network/HTTP/Client/TLS.hs:147:54: error:
Variable not in scope:
strippedHostName
:: String -> connection-0.3.1:Network.Connection.Types.HostName
|
147 | Nothing -> Just $ NC.OtherProxy (strippedHostName host) $ fromIntegral port
| ^^^^^^^^^^^^^^^^
Fortunately a workaround is simple: use http-client-tls < 0.3.6.
tiredpixel
Metadata
Metadata
Assignees
Labels
No labels