Configuring tls-1.1.2... Flags chosen: compat=True Dependency base ==4.6.0.1: using base-4.6.0.1 Dependency bytestring ==0.10.0.2: using bytestring-0.10.0.2 Dependency cereal ==0.3.5.2: using cereal-0.3.5.2 Dependency certificate ==1.3.8: using certificate-1.3.8 Dependency crypto-pubkey ==0.2.1: using crypto-pubkey-0.2.1 Dependency crypto-random-api ==0.2.0: using crypto-random-api-0.2.0 Dependency cryptohash ==0.10.0: using cryptohash-0.10.0 Dependency mtl ==2.1.2: using mtl-2.1.2 Dependency network ==2.4.1.2: using network-2.4.1.2 Using Cabal-1.16.0.3 compiled by ghc-7.6 Using compiler: ghc-7.6.3 Using install prefix: /srv/hackage/var/build/cache/inst Binaries installed in: /srv/hackage/var/build/cache/inst/bin Libraries installed in: /srv/hackage/var/build/cache/inst/lib/tls-1.1.2/ghc-7.6.3 Private binaries installed in: /srv/hackage/var/build/cache/inst/libexec Data files installed in: /srv/hackage/var/build/cache/inst/share/tls-1.1.2 Documentation installed in: /srv/hackage/var/build/cache/inst/share/doc/tls-1.1.2 Using alex version 3.0.1 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar No c2hs found No cpphs found No ffihugs found Using gcc version 4.7 found on system at: /usr/bin/gcc Using ghc version 7.6.3 found on system at: /usr/local/bin/ghc Using ghc-pkg version 7.6.3 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.13.2 found on system at: /usr/local/bin/haddock Using happy version 1.18.9 found on system at: /usr/bin/happy No hmake found Using hpc version 0.6 found on system at: /usr/local/bin/hpc Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.19 found on system at: /usr/bin/HsColour No hugs found No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found No pkg-config found Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar No uhc found creating dist/build creating dist/build/autogen Building tls-1.1.2... Preprocessing library tls-1.1.2... Building library... creating dist/build /usr/local/bin/ghc --make -fbuilding-cabal-package -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-DSSLV2_COMPATIBLE -optP-include -optPdist/build/autogen/cabal_macros.h -package-name tls-1.1.2 -hide-all-packages -package-db /srv/hackage/var/build/cache/inst/local.conf.d -package-db dist/package.conf.inplace -package-id base-4.6.0.1-8aa5d403c45ea59dcd2c39f123e27d57 -package-id bytestring-0.10.0.2-4f93248f75667c2c3321a7a6761b576f -package-id cereal-0.3.5.2-ad920b263208cd32058d82f64060be7c -package-id certificate-1.3.8-9c600e0b160d8176e870e30c4c7bb8bf -package-id crypto-pubkey-0.2.1-f9078993beef9762f1d4aed494f995de -package-id crypto-random-api-0.2.0-dacf0402bf8507168cecf3fddd6bba38 -package-id cryptohash-0.10.0-0c8e5d1064d66110f89f7bccd958dd06 -package-id mtl-2.1.2-94c72af955e94b8d7b2f359dadd0cb62 -package-id network-2.4.1.2-fc99093587d92370c7febe034504fb40 -XHaskell98 Network.TLS Network.TLS.Cipher Network.TLS.Compression Network.TLS.Internal Network.TLS.Cap Network.TLS.Struct Network.TLS.Core Network.TLS.Context Network.TLS.Crypto Network.TLS.Extension Network.TLS.Handshake Network.TLS.Handshake.Common Network.TLS.Handshake.Certificate Network.TLS.Handshake.Client Network.TLS.Handshake.Server Network.TLS.Handshake.Signature Network.TLS.IO Network.TLS.MAC Network.TLS.Measurement Network.TLS.Packet Network.TLS.Record Network.TLS.Record.Types Network.TLS.Record.Engage Network.TLS.Record.Disengage Network.TLS.State Network.TLS.Session Network.TLS.Sending Network.TLS.Receiving Network.TLS.Util Network.TLS.Types Network.TLS.Wire -Wall -O0 [ 1 of 31] Compiling Network.TLS.MAC ( Network/TLS/MAC.hs, dist/build/Network/TLS/MAC.o ) [ 2 of 31] Compiling Network.TLS.Measurement ( Network/TLS/Measurement.hs, dist/build/Network/TLS/Measurement.o ) [ 3 of 31] Compiling Network.TLS.Types ( Network/TLS/Types.hs, dist/build/Network/TLS/Types.o ) [ 4 of 31] Compiling Network.TLS.Session ( Network/TLS/Session.hs, dist/build/Network/TLS/Session.o ) [ 5 of 31] Compiling Network.TLS.Crypto ( Network/TLS/Crypto.hs, dist/build/Network/TLS/Crypto.o ) Network/TLS/Crypto.hs:104:52: Could not deduce (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) arising from a use of `RSA.encrypt' from the context (CPRG g) bound by the type signature for kxEncrypt :: CPRG g => g -> PublicKey -> ByteString -> (Either KxError ByteString, g) at Network/TLS/Crypto.hs:103:14-85 Possible fix: add (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) to the context of the type signature for kxEncrypt :: CPRG g => g -> PublicKey -> ByteString -> (Either KxError ByteString, g) In the second argument of `($)', namely `RSA.encrypt g pk b' In the expression: generalizeRSAWithRNG $ RSA.encrypt g pk b In an equation for `kxEncrypt': kxEncrypt g (PubRSA pk) b = generalizeRSAWithRNG $ RSA.encrypt g pk b Network/TLS/Crypto.hs:107:53: Could not deduce (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) arising from a use of `RSA.decryptSafer' from the context (CPRG g) bound by the type signature for kxDecrypt :: CPRG g => g -> PrivateKey -> ByteString -> (Either KxError ByteString, g) at Network/TLS/Crypto.hs:106:14-86 Possible fix: add (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) to the context of the type signature for kxDecrypt :: CPRG g => g -> PrivateKey -> ByteString -> (Either KxError ByteString, g) In the second argument of `($)', namely `RSA.decryptSafer g pk b' In the expression: generalizeRSAWithRNG $ RSA.decryptSafer g pk b In an equation for `kxDecrypt': kxDecrypt g (PrivRSA pk) b = generalizeRSAWithRNG $ RSA.decryptSafer g pk b Network/TLS/Crypto.hs:120:28: Could not deduce (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) arising from a use of `RSA.signSafer' from the context (CPRG g) bound by the type signature for kxSign :: CPRG g => g -> PrivateKey -> HashDescr -> ByteString -> (Either KxError ByteString, g) at Network/TLS/Crypto.hs:118:11-96 Possible fix: add (crypto-random-0.0.7:Crypto.Random.Generator.CPRG g) to the context of the type signature for kxSign :: CPRG g => g -> PrivateKey -> HashDescr -> ByteString -> (Either KxError ByteString, g) In the second argument of `($)', namely `RSA.signSafer g hashDescr pk msg' In the expression: generalizeRSAWithRNG $ RSA.signSafer g hashDescr pk msg In an equation for `kxSign': kxSign g (PrivRSA pk) hashDescr msg = generalizeRSAWithRNG $ RSA.signSafer g hashDescr pk msg