http-client-tls 0.3.6.4 build error on windows
I was trying to install some packages earlier and got errors on building http-client-tls 0.3.6.4. Forcing 0.3.6.3 results in a successful build without errors.
```
PS C:\> cabal install hoogle
Resolving dependencies...
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- http-client-tls-0.3.6.4 (lib) (requires build)
- http-conduit-2.3.9.1 (lib) (requires build)
- hoogle-5.0.18.4 (lib) (requires build)
- hoogle-5.0.18.4 (exe:hoogle) (requires build)
Starting http-client-tls-0.3.6.4 (lib)
Building http-client-tls-0.3.6.4 (lib)
Failed to build http-client-tls-0.3.6.4.
Build log (
C:\unlocked-programs\cabal\logs\ghc-9.4.8\http-client-t_-0.3.6.4-fe59250c5d2495a2feb29e7b5bae7a85fbd89cfc.log
):
Preprocessing library for http-client-tls-0.3.6.4..
Building library for http-client-tls-0.3.6.4..
[1 of 1] Compiling Network.HTTP.Client.TLS ( Network\HTTP\Client\TLS.hs, dist\build\Network\HTTP\Client\TLS.o )
Network\HTTP\Client\TLS.hs:118:40: error:
* No instance for (Default NC.TLSSettings)
arising from a use of `def'
* In the first argument of `mkManagerSettings', namely `def'
In the expression: mkManagerSettings def Nothing
In an equation for `tlsManagerSettings':
tlsManagerSettings = mkManagerSettings def Nothing
|
118 | tlsManagerSettings = mkManagerSettings def Nothing
| ^^^
Network\HTTP\Client\TLS.hs:192:100: error:
* Could not deduce (Default NC.TLSSettings)
arising from a use of `def'
from the context: MonadIO m
bound by the type signature for:
newTlsManager :: forall (m :: * -> *). MonadIO m => m Manager
at Network\HTTP\Client\TLS.hs:186:1-39
* In the third argument of mkManagerSettingsContext', namely `def'
In the expression:
mkManagerSettingsContext'
defaultManagerSettings (Just globalConnectionContext) def
msocksHTTP msocksHTTPS
In an equation for `settings':
settings
= mkManagerSettingsContext'
defaultManagerSettings (Just globalConnectionContext) def
msocksHTTP msocksHTTPS
|
192 | settings = mkManagerSettingsContext' defaultManagerSettings (Just globalConnectionContext) def msocksHTTP msocksHTTPS
| ^^^
Network\HTTP\Client\TLS.hs:208:81: error:
* Could not deduce (Default NC.TLSSettings)
arising from a use of `def'
from the context: MonadIO m
bound by the type signature for:
newTlsManagerWith :: forall (m :: * -> *).
MonadIO m =>
ManagerSettings -> m Manager
at Network\HTTP\Client\TLS.hs:202:1-62
* In the third argument of mkManagerSettingsContext', namely `def'
In the expression:
mkManagerSettingsContext'
set (Just globalConnectionContext) def msocksHTTP msocksHTTPS
In an equation for `settings':
settings
= mkManagerSettingsContext'
set (Just globalConnectionContext) def msocksHTTP msocksHTTPS
|
208 | settings = mkManagerSettingsContext' set (Just globalConnectionContext) def msocksHTTP msocksHTTPS
| ^^^
Error: cabal-3.10.3.0.exe: Failed to build http-client-tls-0.3.6.4 (which is
required by exe:hoogle from hoogle-5.0.18.4). See the build log above for
details.
```
```
PS C:\> cabal install hoogle --constraint 'http-client-tls == 0.3.6.3'
Resolving dependencies...
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- http-client-tls-0.3.6.3 (lib) (requires build)
- http-conduit-2.3.9.1 (lib) (requires build)
- hoogle-5.0.18.4 (lib) (requires build)
- hoogle-5.0.18.4 (exe:hoogle) (requires build)
Starting http-client-tls-0.3.6.3 (lib)
Building http-client-tls-0.3.6.3 (lib)
Installing http-client-tls-0.3.6.3 (lib)
Completed http-client-tls-0.3.6.3 (lib)
Starting http-conduit-2.3.9.1 (lib)
Building http-conduit-2.3.9.1 (lib)
Installing http-conduit-2.3.9.1 (lib)
Completed http-conduit-2.3.9.1 (lib)
Starting hoogle-5.0.18.4 (lib)
Building hoogle-5.0.18.4 (lib)
Installing hoogle-5.0.18.4 (lib)
Completed hoogle-5.0.18.4 (lib)
Starting hoogle-5.0.18.4 (exe:hoogle)
Building hoogle-5.0.18.4 (exe:hoogle)
Installing hoogle-5.0.18.4 (exe:hoogle)
Completed hoogle-5.0.18.4 (exe:hoogle)
Symlinking 'hoogle.exe' to 'C:\unlocked-programs\cabal\bin\hoogle.exe'
```
关闭于 2024-10-28 3 条评论