simmsb / calamity

A library for writing discord bots in haskell
https://hackage.haskell.org/package/calamity
MIT License
109 stars 11 forks source link

Fix x509 type conflict (happened after tls update to 1.7) #63

Closed Miezhiko closed 1 year ago

Miezhiko commented 1 year ago

Changelog for tls-1.7.0 Major version up because "crypton" is used instead of "cryptonite"

without this commit:

    • Couldn't match expected type ‘Data.X509.CertificateStore.CertificateStore’
                  with actual type ‘x509-store-1.6.9:Data.X509.CertificateStore.CertificateStore’
      NB: ‘Data.X509.CertificateStore.CertificateStore’
            is defined in ‘Data.X509.CertificateStore’
                in package ‘crypton-x509-store-1.6.9’
          ‘x509-store-1.6.9:Data.X509.CertificateStore.CertificateStore’
            is defined in ‘Data.X509.CertificateStore’
                in package ‘x509-store-1.6.9’
    • In the ‘sharedCAStore’ field of a record
      In the ‘clientShared’ field of a record
      In the expression:
        (NT.defaultParamsClient (T.unpack host) "443")
          {NT.clientSupported = def
                                  {NT.supportedCiphers = NT.ciphersuite_default},
           NT.clientShared = def {NT.sharedCAStore = certStore}}
    |
136 |                   { NT.sharedCAStore = certStore
    |                                        ^^^^^^^^^
simmsb commented 1 year ago

Looks good, thanks