Resolving dependencies... Configuring base64-bytestring-1.0.0.1... Configuring byteable-0.1.1... Building byteable-0.1.1... Building base64-bytestring-1.0.0.1... Installed byteable-0.1.1 Configuring data-default-class-0.1.2.0... Building data-default-class-0.1.2.0... Configuring foundation-0.0.2... Installed base64-bytestring-1.0.0.1 Building foundation-0.0.2... Configuring mtl-2.2.1... Installed data-default-class-0.1.2.0 Building mtl-2.2.1... Configuring hourglass-0.2.10... Installed mtl-2.2.1 Building hourglass-0.2.10... Configuring primitive-0.6.1.0... Installed hourglass-0.2.10 Building primitive-0.6.1.0... Configuring text-1.2.2.1... Installed primitive-0.6.1.0 Building text-1.2.2.1... Configuring pem-0.2.2... Installed foundation-0.0.2 Building pem-0.2.2... Configuring vector-0.11.0.0... Installed pem-0.2.2 Building vector-0.11.0.0... Installed text-1.2.2.1 Configuring memory-0.14... Building memory-0.14... Installed memory-0.14 Configuring asn1-types-0.3.2... Building asn1-types-0.3.2... Configuring securemem-0.1.9... Installed asn1-types-0.3.2 Building securemem-0.1.9... Configuring cryptonite-0.21... Installed securemem-0.1.9 Building cryptonite-0.21... Configuring asn1-encoding-0.9.4... Installed vector-0.11.0.0 Building asn1-encoding-0.9.4... Installed asn1-encoding-0.9.4 Configuring crypto-random-0.0.9... Building crypto-random-0.0.9... Installed crypto-random-0.0.9 Configuring asn1-parse-0.9.4... Building asn1-parse-0.9.4... Configuring crypto-pubkey-types-0.4.3... Installed asn1-parse-0.9.4 Building crypto-pubkey-types-0.4.3... Configuring crypto-numbers-0.2.7... Installed crypto-pubkey-types-0.4.3 Building crypto-numbers-0.2.7... Installed crypto-numbers-0.2.7 Installed cryptonite-0.21 Configuring cryptohash-0.11.9... Configuring x509-1.6.5... Building cryptohash-0.11.9... Building x509-1.6.5... Installed cryptohash-0.11.9 Configuring crypto-pubkey-0.2.8... Building crypto-pubkey-0.2.8... Installed x509-1.6.5 Configuring x509-store-1.6.2... Building x509-store-1.6.2... Installed x509-store-1.6.2 Configuring x509-system-1.6.4... Configuring x509-validation-1.6.5... Installed crypto-pubkey-0.2.8 Building x509-system-1.6.4... Building x509-validation-1.6.5... Installed x509-system-1.6.4 Installed x509-validation-1.6.5 Configuring x509-util-1.4.0... Building x509-util-1.4.0... Failed to install x509-util-1.4.0 Build log ( /home/builder/.cabal/logs/x509-util-1.4.0.log ): cabal: Entering directory '/tmp/cabal-tmp-5135/x509-util-1.4.0' Configuring x509-util-1.4.0... Building x509-util-1.4.0... Preprocessing executable 'x509-util' for x509-util-1.4.0... [1 of 1] Compiling Main ( src/Certificate.hs, dist/build/x509-util/x509-util-tmp/Main.o ) src/Certificate.hs:90:60: error: • Couldn't match expected type ‘RSA.PublicKey’ with actual type ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ NB: ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.21’ ‘RSA.PublicKey’ is defined in ‘Crypto.Types.PubKey.RSA’ in package ‘crypto-pubkey-types-0.4.3’ • In the first argument of ‘RSA.public_size’, namely ‘pubkey’ In the first argument of ‘(*)’, namely ‘RSA.public_size pubkey’ In the second argument of ‘printf’, namely ‘(RSA.public_size pubkey * 8)’ src/Certificate.hs:91:52: error: • Couldn't match expected type ‘RSA.PublicKey’ with actual type ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ NB: ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.21’ ‘RSA.PublicKey’ is defined in ‘Crypto.Types.PubKey.RSA’ in package ‘crypto-pubkey-types-0.4.3’ • In the first argument of ‘RSA.public_n’, namely ‘pubkey’ In the second argument of ‘printf’, namely ‘(RSA.public_n pubkey)’ In a stmt of a 'do' block: printf " modulus: %x\n" (RSA.public_n pubkey) src/Certificate.hs:92:52: error: • Couldn't match expected type ‘RSA.PublicKey’ with actual type ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ NB: ‘cryptonite-0.21:Crypto.PubKey.RSA.Types.PublicKey’ is defined in ‘Crypto.PubKey.RSA.Types’ in package ‘cryptonite-0.21’ ‘RSA.PublicKey’ is defined in ‘Crypto.Types.PubKey.RSA’ in package ‘crypto-pubkey-types-0.4.3’ • In the first argument of ‘RSA.public_e’, namely ‘pubkey’ In the second argument of ‘printf’, namely ‘(RSA.public_e pubkey)’ In a stmt of a 'do' block: printf " e : %x\n" (RSA.public_e pubkey) src/Certificate.hs:94:44: error: • Couldn't match expected type ‘DSA.PublicKey’ with actual type ‘cryptonite-0.21:Crypto.PubKey.DSA.PublicKey’ NB: ‘cryptonite-0.21:Crypto.PubKey.DSA.PublicKey’ is defined in ‘Crypto.PubKey.DSA’ in package ‘cryptonite-0.21’ ‘DSA.PublicKey’ is defined in ‘Crypto.Types.PubKey.DSA’ in package ‘crypto-pubkey-types-0.4.3’ • In the first argument of ‘DSA.public_params’, namely ‘pubkey’ In the expression: DSA.public_params pubkey In an equation for ‘params’: params = DSA.public_params pubkey src/Certificate.hs:96:52: error: • Couldn't match expected type ‘DSA.PublicKey’ with actual type ‘cryptonite-0.21:Crypto.PubKey.DSA.PublicKey’ NB: ‘cryptonite-0.21:Crypto.PubKey.DSA.PublicKey’ is defined in ‘Crypto.PubKey.DSA’ in package ‘cryptonite-0.21’ ‘DSA.PublicKey’ is defined in ‘Crypto.Types.PubKey.DSA’ in package ‘crypto-pubkey-types-0.4.3’ • In the first argument of ‘DSA.public_y’, namely ‘pubkey’ In the second argument of ‘printf’, namely ‘(DSA.public_y pubkey)’ In a stmt of a 'do' block: printf " pub : %x\n" (DSA.public_y pubkey) src/Certificate.hs:224:19: error: • Couldn't match expected type ‘IO [t0]’ with actual type ‘CertificateStore -> ValidationCache -> ServiceID -> CertificateChain -> IO [FailedReason]’ • Probable cause: ‘validate’ is applied to too few arguments In a stmt of a 'do' block: failed <- validate validationChecks store cc In the second argument of ‘($)’, namely ‘do { let cc = CertificateChain (rights objs); store <- getSystemCertificateStore; failed <- validate validationChecks store cc; if failed /= [] then putStrLn ("validation failed: " ++ show failed) else putStrLn "validation success" }’ In a stmt of a 'do' block: when (Validate `elem` opts) $ do { let cc = CertificateChain (rights objs); store <- getSystemCertificateStore; failed <- validate validationChecks store cc; if failed /= [] then putStrLn ("validation failed: " ++ show failed) else putStrLn "validation success" } src/Certificate.hs:224:28: error: • Couldn't match expected type ‘HashALG’ with actual type ‘ValidationChecks’ • In the first argument of ‘validate’, namely ‘validationChecks’ In a stmt of a 'do' block: failed <- validate validationChecks store cc In the second argument of ‘($)’, namely ‘do { let cc = CertificateChain (rights objs); store <- getSystemCertificateStore; failed <- validate validationChecks store cc; if failed /= [] then putStrLn ("validation failed: " ++ show failed) else putStrLn "validation success" }’ src/Certificate.hs:224:45: error: • Couldn't match expected type ‘ValidationHooks’ with actual type ‘CertificateStore’ • In the second argument of ‘validate’, namely ‘store’ In a stmt of a 'do' block: failed <- validate validationChecks store cc In the second argument of ‘($)’, namely ‘do { let cc = CertificateChain (rights objs); store <- getSystemCertificateStore; failed <- validate validationChecks store cc; if failed /= [] then putStrLn ("validation failed: " ++ show failed) else putStrLn "validation success" }’ src/Certificate.hs:224:51: error: • Couldn't match expected type ‘ValidationChecks’ with actual type ‘CertificateChain’ • In the third argument of ‘validate’, namely ‘cc’ In a stmt of a 'do' block: failed <- validate validationChecks store cc In the second argument of ‘($)’, namely ‘do { let cc = CertificateChain (rights objs); store <- getSystemCertificateStore; failed <- validate validationChecks store cc; if failed /= [] then putStrLn ("validation failed: " ++ show failed) else putStrLn "validation success" }’ src/Certificate.hs:238:29: error: • Couldn't match expected type ‘[Char] -> ValidationChecks’ with actual type ‘ValidationChecks’ • The function ‘defaultChecks’ is applied to one argument, but its type ‘ValidationChecks’ has none In the expression: (defaultChecks "") In the expression: (defaultChecks "") {checkFQHN = foldl accHost Nothing opts, checkExhaustive = True} src/Certificate.hs:238:67: error: • Couldn't match expected type ‘Bool’ with actual type ‘Maybe String’ • In the ‘checkFQHN’ field of a record In the expression: (defaultChecks "") {checkFQHN = foldl accHost Nothing opts, checkExhaustive = True} In an equation for ‘validationChecks’: validationChecks = (defaultChecks "") {checkFQHN = foldl accHost Nothing opts, checkExhaustive = True} cabal: Leaving directory '/tmp/cabal-tmp-5135/x509-util-1.4.0' cabal: Error: some packages failed to install: x509-util-1.4.0 failed during the building phase. The exception was: ExitFailure 1