Skip to content

Does not build against tls-2.3.0 #574

@Bodigrim

Description

@Bodigrim

(Because tls-2.3.0 swapped memory with ram, see #573)

http-client-tls-0.3.6.4$ cabal build
Resolving dependencies...
Build profile: -w ghc-9.12.2 -O1
In order, the following will be built (use -v for more details):
 - crypton-1.1.0 (lib) (requires build)
 - hpke-0.1.0 (lib) (requires build)
 - crypton-x509-1.9.0 (lib) (requires build)
 - crypton-x509-store-1.9.0 (lib) (requires build)
 - crypton-x509-validation-1.9.0 (lib) (requires build)
 - crypton-x509-system-1.9.0 (lib) (requires build)
 - tls-2.3.0 (lib) (requires build)
 - crypton-connection-0.4.6 (lib) (requires build)
 - http-client-tls-0.3.6.4 (lib) (first run)
Starting     crypton-1.1.0 (lib)
Building     crypton-1.1.0 (lib)
Installing   crypton-1.1.0 (lib)
Completed    crypton-1.1.0 (lib)
Starting     hpke-0.1.0 (lib)
Starting     crypton-x509-1.9.0 (lib)
Building     hpke-0.1.0 (lib)
Building     crypton-x509-1.9.0 (lib)
Installing   hpke-0.1.0 (lib)
Completed    hpke-0.1.0 (lib)
Installing   crypton-x509-1.9.0 (lib)
Completed    crypton-x509-1.9.0 (lib)
Starting     crypton-x509-store-1.9.0 (lib)
Building     crypton-x509-store-1.9.0 (lib)
Installing   crypton-x509-store-1.9.0 (lib)
Completed    crypton-x509-store-1.9.0 (lib)
Starting     crypton-x509-validation-1.9.0 (lib)
Starting     crypton-x509-system-1.9.0 (lib)
Building     crypton-x509-validation-1.9.0 (lib)
Installing   crypton-x509-validation-1.9.0 (lib)
Completed    crypton-x509-validation-1.9.0 (lib)
Starting     tls-2.3.0 (lib)
Building     crypton-x509-system-1.9.0 (lib)
Installing   crypton-x509-system-1.9.0 (lib)
Completed    crypton-x509-system-1.9.0 (lib)
Building     tls-2.3.0 (lib)
Installing   tls-2.3.0 (lib)
Completed    tls-2.3.0 (lib)
Starting     crypton-connection-0.4.6 (lib)
Building     crypton-connection-0.4.6 (lib)
Installing   crypton-connection-0.4.6 (lib)
Completed    crypton-connection-0.4.6 (lib)
Configuring library for http-client-tls-0.3.6.4...
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:364:26: error: [GHC-39999]
    • Could not deduce ‘memory-0.18.0:Data.ByteArray.Types.ByteArrayAccess
                          (Digest MD5)’
        arising from a use of ‘convertToBase’
      from the context: (MonadIO m, MonadThrow n)
        bound by the type signature for:
                   applyDigestAuth :: forall (m :: * -> *) (n :: * -> *).
                                      (MonadIO m, MonadThrow n) =>
                                      S.ByteString
                                      -> S.ByteString -> Request -> Manager -> m (n Request)
        at Network/HTTP/Client/TLS.hs:(327,1)-(332,32)
      or from: (memory-0.18.0:Data.ByteArray.Types.ByteArray bout,
                ram-0.21.1:Data.ByteArray.Types.ByteArrayAccess ba)
        bound by the inferred type of
                   md5 :: (memory-0.18.0:Data.ByteArray.Types.ByteArray bout,
                           ram-0.21.1:Data.ByteArray.Types.ByteArrayAccess ba) =>
                          ba -> bout
        at Network/HTTP/Client/TLS.hs:364:17-69
    • In the expression: convertToBase Base16 (hash bs :: Digest MD5)
      In an equation for ‘md5’:
          md5 bs = convertToBase Base16 (hash bs :: Digest MD5)
      In an equation for ‘digest’:
          digest
            | qop = md5 $ S.concat [ha1, ":", nonce, ....]
            | otherwise = md5 $ S.concat [ha1, ":", nonce, ....]
            where
                ha1 = md5 $ S.concat [user, ....]
                ha2 = md5 $ S.concat [method req, ....]
                md5 bs = convertToBase Base16 (hash bs :: Digest MD5)
    |
364 |                 md5 bs = convertToBase Base16 (hash bs :: Digest MD5)
    |                          ^^^^^^^^^^^^^

Error: [Cabal-7125]
Failed to build http-client-tls-0.3.6.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions