haskell-docs-cli icon indicating copy to clipboard operation
haskell-docs-cli copied to clipboard

Installation fails while building warp-tls-3.3.6

Open glyn opened this issue 2 years ago • 0 comments

cabal install haskell-docs-cli fails for me with:

Failed to build warp-tls-3.3.6.
Build log (
/home/glyn/.cabal/logs/ghc-9.2.8/warp-tls-3.3.6-741348b906902596799b9280b80ff96bec84c3d3b87179ffd61224195c65d769.log
):
Configuring library for warp-tls-3.3.6..
Preprocessing library for warp-tls-3.3.6..
Building library for warp-tls-3.3.6..
[1 of 2] Compiling Network.Wai.Handler.WarpTLS.Internal ( Network/Wai/Handler/WarpTLS/Internal.hs, dist/build/Network/Wai/Handler/WarpTLS/Internal.o, dist/build/Network/Wai/Handler/WarpTLS/Internal.dyn_o )
[2 of 2] Compiling Network.Wai.Handler.WarpTLS ( Network/Wai/Handler/WarpTLS.hs, dist/build/Network/Wai/Handler/WarpTLS.o, dist/build/Network/Wai/Handler/WarpTLS.dyn_o )

Network/Wai/Handler/WarpTLS.hs:389:40: error:
    • Couldn't match type ‘x509-1.7.7:Data.X509.CertificateChain.CertificateChain’
                     with ‘crypton-x509-1.7.6:Data.X509.CertificateChain.CertificateChain’
      Expected: Maybe
                  crypton-x509-1.7.6:Data.X509.CertificateChain.CertificateChain
        Actual: Maybe
                  x509-1.7.7:Data.X509.CertificateChain.CertificateChain
      NB: ‘crypton-x509-1.7.6:Data.X509.CertificateChain.CertificateChain’
            is defined in ‘Data.X509.CertificateChain’
                in package ‘crypton-x509-1.7.6’
          ‘x509-1.7.7:Data.X509.CertificateChain.CertificateChain’
            is defined in ‘Data.X509.CertificateChain’ in package ‘x509-1.7.7’
    • In the ‘tlsClientCertificate’ field of a record
      In the first argument of ‘return’, namely
        ‘TLS
           {tlsMajorVersion = major, tlsMinorVersion = minor,
            tlsNegotiatedProtocol = proto,
            tlsChiperID = TLS.cipherID infoCipher,
            tlsClientCertificate = clientCert}’
      In a stmt of a 'do' block:
        return
          TLS
            {tlsMajorVersion = major, tlsMinorVersion = minor,
             tlsNegotiatedProtocol = proto,
             tlsChiperID = TLS.cipherID infoCipher,
             tlsClientCertificate = clientCert}
    |
389 |               , tlsClientCertificate = clientCert
    |                                        ^^^^^^^^^^

I had just run cabal update to ensure I was using the latest package list from hackage. I am running the ghcup recommended versions of ghc (9.2.8) and cabal (3.6.2.0).

(I ran into the same problem with ghc 9.4.2 and cabal 3.10.1.0, so tried switching to the recommended versions to see if this improved matters.)

I am running arch linux with a 6.4.1-arch2-1 kernel.

glyn avatar Jul 07 '23 15:07 glyn