haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

x509-util-1.5.2 does not compile #54

Closed peti closed 7 years ago

peti commented 9 years ago

Citing from http://hydra.cryp.to/build/942200/log/raw:

src/Certificate.hs:90:60:
    Couldn't match expected type ‘RSA.PublicKey’
                with actual type ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
    NB: ‘RSA.PublicKey’
          is defined in ‘Crypto.Types.PubKey.RSA’
              in package ‘crypto-pubkey-types-0.4.3’
        ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
          is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.5’
    In the first argument of ‘RSA.public_size’, namely ‘pubkey’
    In the first argument of ‘(*)’, namely ‘RSA.public_size pubkey’

src/Certificate.hs:91:52:
    Couldn't match expected type ‘RSA.PublicKey’
                with actual type ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
    NB: ‘RSA.PublicKey’
          is defined in ‘Crypto.Types.PubKey.RSA’
              in package ‘crypto-pubkey-types-0.4.3’
        ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
          is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.5’
    In the first argument of ‘RSA.public_n’, namely ‘pubkey’
    In the second argument of ‘printf’, namely ‘(RSA.public_n pubkey)’

src/Certificate.hs:92:52:
    Couldn't match expected type ‘RSA.PublicKey’
                with actual type ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
    NB: ‘RSA.PublicKey’
          is defined in ‘Crypto.Types.PubKey.RSA’
              in package ‘crypto-pubkey-types-0.4.3’
        ‘cryptonite-0.5:Crypto.PubKey.RSA.Types.PublicKey’
          is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.5’
    In the first argument of ‘RSA.public_e’, namely ‘pubkey’
    In the second argument of ‘printf’, namely ‘(RSA.public_e pubkey)’

src/Certificate.hs:94:44:
    Couldn't match expected type ‘DSA.PublicKey’
                with actual type ‘cryptonite-0.5:Crypto.PubKey.DSA.PublicKey’
    NB: ‘DSA.PublicKey’
          is defined in ‘Crypto.Types.PubKey.DSA’
              in package ‘crypto-pubkey-types-0.4.3’
        ‘cryptonite-0.5:Crypto.PubKey.DSA.PublicKey’
          is defined in ‘Crypto.PubKey.DSA’ in package ‘cryptonite-0.5’
    In the first argument of ‘DSA.public_params’, namely ‘pubkey’
    In the expression: DSA.public_params pubkey

src/Certificate.hs:96:52:
    Couldn't match expected type ‘DSA.PublicKey’
                with actual type ‘cryptonite-0.5:Crypto.PubKey.DSA.PublicKey’
    NB: ‘DSA.PublicKey’
          is defined in ‘Crypto.Types.PubKey.DSA’
              in package ‘crypto-pubkey-types-0.4.3’
        ‘cryptonite-0.5:Crypto.PubKey.DSA.PublicKey’
          is defined in ‘Crypto.PubKey.DSA’ in package ‘cryptonite-0.5’
    In the first argument of ‘DSA.public_y’, namely ‘pubkey’
    In the second argument of ‘printf’, namely ‘(DSA.public_y pubkey)’
vincenthz commented 9 years ago

yes, thanks; I haven't updated x509-util as it would have take me much longer to update tls. as this is not too critical

nomeata commented 8 years ago

I am seeing the same problem. @peti, is there a solution or work-around?

peti commented 8 years ago

@nomeata, we simply removed the package from NixOS. It doesn't compile, and no other package depends on it anyway.

vincenthz commented 7 years ago

has been fixed some time ago