Resolving dependencies... Configuring base16-bytestring-0.1.1.6... Configuring base-orphans-0.5.4... Building base16-bytestring-0.1.1.6... Building base-orphans-0.5.4... Installed base-orphans-0.5.4 Configuring byteable-0.1.1... Configuring bytedump-1.0... Installed base16-bytestring-0.1.1.6 Building byteable-0.1.1... Building bytedump-1.0... Configuring cereal-0.5.4.0... Installed byteable-0.1.1 Building cereal-0.5.4.0... Configuring entropy-0.3.7... Installed bytedump-1.0 Building entropy-0.3.7... Configuring fail-4.9.0.0... Installed cereal-0.5.4.0 Configuring dlist-0.8.0.2... Installed entropy-0.3.7 Building fail-4.9.0.0... Building dlist-0.8.0.2... Configuring largeword-1.2.5... Installed fail-4.9.0.0 Building largeword-1.2.5... Configuring mtl-2.2.1... Installed dlist-0.8.0.2 Configuring memory-0.13... Installed largeword-1.2.5 Building mtl-2.2.1... Building memory-0.13... Configuring prelude-extras-0.4.0.3... Installed mtl-2.2.1 Building prelude-extras-0.4.0.3... Configuring network-2.6.3.1... Installed memory-0.13 Configuring primitive-0.6.1.0... Installed prelude-extras-0.4.0.3 Building primitive-0.6.1.0... Building network-2.6.3.1... Configuring random-1.1... Installed primitive-0.6.1.0 Building random-1.1... Configuring safe-0.3.10... Installed random-1.1 Building safe-0.3.10... Configuring split-0.2.3.1... Installed network-2.6.3.1 Building split-0.2.3.1... Configuring semigroups-0.18.2... Installed safe-0.3.10 Configuring stm-2.4.4.1... Installed split-0.2.3.1 Building semigroups-0.18.2... Building stm-2.4.4.1... Configuring syb-0.6... Installed semigroups-0.18.2 Building syb-0.6... Configuring transformers-compat-0.5.1.4... Installed stm-2.4.4.1 Building transformers-compat-0.5.1.4... Configuring text-1.2.2.1... Installed transformers-compat-0.5.1.4 Building text-1.2.2.1... Configuring unexceptionalio-0.3.0... Installed syb-0.6 Building unexceptionalio-0.3.0... Configuring utf8-string-1.0.1.1... Installed unexceptionalio-0.3.0 Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring murmur3-1.0.3... Building murmur3-1.0.3... Configuring cryptonite-0.20... Installed murmur3-1.0.3 Building cryptonite-0.20... Configuring tf-random-0.5... Installed text-1.2.2.1 Building tf-random-0.5... Configuring vector-0.11.0.0... Installed tf-random-0.5 Building vector-0.11.0.0... Configuring StateVar-1.1.0.4... Installed cryptonite-0.20 Building StateVar-1.1.0.4... Configuring MonadRandom-0.4.2.3... Installed StateVar-1.1.0.4 Building MonadRandom-0.4.2.3... Configuring mmorph-1.0.6... Installed vector-0.11.0.0 Building mmorph-1.0.6... Configuring tagged-0.8.5... Installed MonadRandom-0.4.2.3 Building tagged-0.8.5... Configuring transformers-base-0.4.4... Installed mmorph-1.0.6 Building transformers-base-0.4.4... Configuring exceptions-0.8.3... Installed transformers-base-0.4.4 Building exceptions-0.8.3... Configuring errors-2.1.2... Installed tagged-0.8.5 Building errors-2.1.2... Installed errors-2.1.2 Configuring hashable-1.2.4.0... Configuring string-conversions-0.4... Installed exceptions-0.8.3 Building hashable-1.2.4.0... Building string-conversions-0.4... Configuring QuickCheck-2.8.2... Installed string-conversions-0.4 Building QuickCheck-2.8.2... Configuring monad-control-1.0.1.0... Installed hashable-1.2.4.0 Building monad-control-1.0.1.0... Configuring cryptohash-0.11.9... Installed monad-control-1.0.1.0 Building cryptohash-0.11.9... Configuring distributive-0.5.0.2... Installed cryptohash-0.11.9 Building distributive-0.5.0.2... Installed distributive-0.5.0.2 Configuring unordered-containers-0.2.7.1... Building unordered-containers-0.2.7.1... Configuring scientific-0.3.4.9... Installed QuickCheck-2.8.2 Building scientific-0.3.4.9... Configuring lifted-base-0.2.3.8... Installed scientific-0.3.4.9 Building lifted-base-0.2.3.8... Configuring void-0.7.1... Installed unordered-containers-0.2.7.1 Building void-0.7.1... Configuring pbkdf-1.1.1.1... Installed lifted-base-0.2.3.8 Building pbkdf-1.1.1.1... Installed void-0.7.1 Configuring secp256k1-0.4.6... Configuring attoparsec-0.13.1.0... Installed pbkdf-1.1.1.1 Building attoparsec-0.13.1.0... Configuring resourcet-1.1.8.1... Installed attoparsec-0.13.1.0 Building resourcet-1.1.8.1... Building secp256k1-0.4.6... Configuring contravariant-1.4... Installed resourcet-1.1.8.1 Building contravariant-1.4... Installed contravariant-1.4 Configuring conduit-1.2.8... Building conduit-1.2.8... Configuring aeson-0.11.2.1... Installed secp256k1-0.4.6 Building aeson-0.11.2.1... Configuring comonad-5... Installed conduit-1.2.8 Building comonad-5... Installed comonad-5 Configuring bifunctors-5.4.1... Building bifunctors-5.4.1... Installed aeson-0.11.2.1 Configuring hexstring-0.11.1... Building hexstring-0.11.1... Installed hexstring-0.11.1 Installed bifunctors-5.4.1 Configuring semigroupoids-5.1... Configuring profunctors-5.2... Building profunctors-5.2... Building semigroupoids-5.1... Installed profunctors-5.2 Installed semigroupoids-5.1 Configuring free-4.12.4... Building free-4.12.4... Installed free-4.12.4 Configuring either-4.4.1.1... Building either-4.4.1.1... Installed either-4.4.1.1 Configuring haskoin-core-0.4.0... Building haskoin-core-0.4.0... Installed haskoin-core-0.4.0 Configuring bitcoin-payment-channel-0.6.0.0... Building bitcoin-payment-channel-0.6.0.0... Failed to install bitcoin-payment-channel-0.6.0.0 Build log ( /home/builder/.cabal/logs/bitcoin-payment-channel-0.6.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-28938/bitcoin-payment-channel-0.6.0.0' Configuring bitcoin-payment-channel-0.6.0.0... Building bitcoin-payment-channel-0.6.0.0... Preprocessing library bitcoin-payment-channel-0.6.0.0... [ 1 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Crypto.PubKey ( src/Data/Bitcoin/PaymentChannel/Internal/Crypto/PubKey.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Crypto/PubKey.o ) [ 2 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Bitcoin.Util ( src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Util.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Util.o ) src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Util.hs:57:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: bitcoinPayPKBS :: HC.PubKeyC -> C.ByteString [ 3 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Bitcoin.LockTime ( src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/LockTime.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/LockTime.o ) src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/LockTime.hs:39:5: warning: [-Wtype-defaults] • Defaulting the following constraint to type ‘Integer’ Integral a0 arising from a use of ‘fromIntegral’ • In the first argument of ‘(.)’, namely ‘fromIntegral’ In the expression: fromIntegral . round . utcTimeToPOSIXSeconds In the expression: fromIntegral . round . utcTimeToPOSIXSeconds $ date [ 4 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Util ( src/Data/Bitcoin/PaymentChannel/Internal/Util.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Util.o ) src/Data/Bitcoin/PaymentChannel/Internal/Util.hs:35:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: mapLeft :: (a1 -> a) -> Either a1 b -> Either a b src/Data/Bitcoin/PaymentChannel/Internal/Util.hs:36:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: mapRight :: (a1 -> b) -> Either a a1 -> Either a b src/Data/Bitcoin/PaymentChannel/Internal/Util.hs:38:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: dummyHash256 :: HC.Hash256 [ 5 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Bitcoin.Amount ( src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Amount.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Amount.o ) [ 6 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Bitcoin.Fee ( src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Fee.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Fee.o ) [ 7 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Types ( src/Data/Bitcoin/PaymentChannel/Internal/Types.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Types.o ) src/Data/Bitcoin/PaymentChannel/Internal/Types.hs:133:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: rpcGetXPub :: ReceiverPaymentChannelI pkInfo -> pkInfo src/Data/Bitcoin/PaymentChannel/Internal/Types.hs:141:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: defaultConfig :: Config src/Data/Bitcoin/PaymentChannel/Internal/Types.hs:143:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: defaultDustLimit :: BitcoinAmount src/Data/Bitcoin/PaymentChannel/Internal/Types.hs:144:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: defaultSettlementPeriod :: Hour [ 8 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Error ( src/Data/Bitcoin/PaymentChannel/Internal/Error.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Error.o ) [ 9 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Serialization ( src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Serialization.o ) src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:1:1: warning: [-Worphans] Orphan instance: instance FromJSON RecvPubKey To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:1:1: warning: [-Worphans] Orphan instance: instance ToJSON RecvPubKey To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:1:1: warning: [-Worphans] Orphan instance: instance FromJSON SendPubKey To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:1:1: warning: [-Worphans] Orphan instance: instance ToJSON SendPubKey To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:22:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize PayChanError To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:30:1: warning: [-Worphans] Orphan instance: instance ToJSON BitcoinLockTime To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:34:1: warning: [-Worphans] Orphan instance: instance FromJSON BitcoinLockTime To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:38:1: warning: [-Worphans] Orphan instance: instance ToJSON Payment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:55:1: warning: [-Worphans] Orphan instance: instance ToJSON FullPayment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:68:1: warning: [-Worphans] Orphan instance: instance FromJSON FullPayment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:80:1: warning: [-Worphans] Orphan instance: instance ToJSON BitcoinAmount To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:84:1: warning: [-Worphans] Orphan instance: instance FromJSON BitcoinAmount To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:90:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize ChanScript To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:100:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize PaymentChannelState To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:107:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize ChannelParameters To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:112:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize FundingTxInfo To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:117:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize PaymentTxConfig To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:122:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize Config To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:127:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize Payment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:132:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize FullPayment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:137:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize PaymentSignature To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:143:1: warning: [-Worphans] Orphan instance: instance Show Payment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:148:1: warning: [-Worphans] Orphan instance: instance Show FullPayment To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:166:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize ReceiverPaymentChannel To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/Data/Bitcoin/PaymentChannel/Internal/Serialization.hs:171:1: warning: [-Worphans] Orphan instance: instance Bin.Serialize ReceiverPaymentChannelX To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. [10 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Bitcoin.Script ( src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Script.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Script.o ) src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Script.hs:14:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: valReceiverSigHash :: SigHash src/Data/Bitcoin/PaymentChannel/Internal/Bitcoin/Script.hs:63:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: op_CHECKLOCKTIMEVERIFY :: ScriptOp [11 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Payment ( src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Payment.o ) src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:31:43: warning: [-Wname-shadowing] This binding for ‘changeValue’ shadows the existing binding defined at src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:20:6 src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:37:38: warning: [-Wname-shadowing] This binding for ‘fundingOutPoint’ shadows the existing binding defined at src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:16:6 src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:52:43: warning: [-Wname-shadowing] This binding for ‘redeemScript’ shadows the existing binding defined at src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:18:6 [12 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Settlement ( src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Settlement.o ) src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:20:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: serverSigHash :: SigHash src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:55:56: warning: [-Wname-shadowing] This binding for ‘clientSig’ shadows the existing binding imported from ‘Data.Bitcoin.PaymentChannel.Internal.Payment’ at src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:9:1-51 (and originally defined at src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:26:6-14) src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:85:29: warning: [-Wname-shadowing] This binding for ‘cs’ shadows the existing binding imported from ‘Data.Bitcoin.PaymentChannel.Internal.Util’ at src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:12:1-48 (and originally defined in ‘Data.String.Conversions’) src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:89:19: warning: [-Wname-shadowing] This binding for ‘cs’ shadows the existing binding imported from ‘Data.Bitcoin.PaymentChannel.Internal.Util’ at src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:12:1-48 (and originally defined in ‘Data.String.Conversions’) src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:89:56: warning: [-Wname-shadowing] This binding for ‘clientSig’ shadows the existing binding imported from ‘Data.Bitcoin.PaymentChannel.Internal.Payment’ at src/Data/Bitcoin/PaymentChannel/Internal/Settlement.hs:9:1-51 (and originally defined at src/Data/Bitcoin/PaymentChannel/Internal/Payment.hs:26:6-14) [13 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.State ( src/Data/Bitcoin/PaymentChannel/Internal/State.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/State.o ) src/Data/Bitcoin/PaymentChannel/Internal/State.hs:16:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsChannelTotalValue :: PaymentChannelState -> BitcoinAmount src/Data/Bitcoin/PaymentChannel/Internal/State.hs:17:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsValueTransferred :: PaymentChannelState -> BitcoinAmount src/Data/Bitcoin/PaymentChannel/Internal/State.hs:18:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsChannelValueLeft :: PaymentChannelState -> BitcoinAmount src/Data/Bitcoin/PaymentChannel/Internal/State.hs:19:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsClientPubKey :: PaymentChannelState -> SendPubKey src/Data/Bitcoin/PaymentChannel/Internal/State.hs:20:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsServerPubKey :: PaymentChannelState -> RecvPubKey src/Data/Bitcoin/PaymentChannel/Internal/State.hs:21:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsDustLimit :: PaymentChannelState -> BitcoinAmount src/Data/Bitcoin/PaymentChannel/Internal/State.hs:22:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsExpirationDate :: PaymentChannelState -> BitcoinLockTime src/Data/Bitcoin/PaymentChannel/Internal/State.hs:23:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsClientChangeAddress :: PaymentChannelState -> Address src/Data/Bitcoin/PaymentChannel/Internal/State.hs:24:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsClientChangeScriptPubKey :: PaymentChannelState -> Data.ByteString.Internal.ByteString src/Data/Bitcoin/PaymentChannel/Internal/State.hs:25:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsLockTime :: PaymentChannelState -> BitcoinLockTime src/Data/Bitcoin/PaymentChannel/Internal/State.hs:26:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: pcsPrevOut :: PaymentChannelState -> OutPoint src/Data/Bitcoin/PaymentChannel/Internal/State.hs:61:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: newPaymentChannelState :: Config -> ChannelParameters -> FundingTxInfo -> PaymentTxConfig -> PaymentSignature -> PaymentChannelState [14 of 18] Compiling Data.Bitcoin.PaymentChannel.Internal.Refund ( src/Data/Bitcoin/PaymentChannel/Internal/Refund.hs, dist/build/Data/Bitcoin/PaymentChannel/Internal/Refund.o ) [15 of 18] Compiling Data.Bitcoin.PaymentChannel.Types ( src/Data/Bitcoin/PaymentChannel/Types.hs, dist/build/Data/Bitcoin/PaymentChannel/Types.o ) src/Data/Bitcoin/PaymentChannel/Types.hs:57:1: warning: [-Wunused-imports] The qualified import of ‘Data.Serialize’ is redundant except perhaps to import instances from ‘Data.Serialize’ To import instances alone, use: import Data.Serialize() [16 of 18] Compiling Data.Bitcoin.PaymentChannel.Util ( src/Data/Bitcoin/PaymentChannel/Util.hs, dist/build/Data/Bitcoin/PaymentChannel/Util.o ) [17 of 18] Compiling Data.Bitcoin.PaymentChannel ( src/Data/Bitcoin/PaymentChannel.hs, dist/build/Data/Bitcoin/PaymentChannel.o ) src/Data/Bitcoin/PaymentChannel.hs:244:68: error: • Couldn't match type ‘haskoin-core-0.4.0:Network.Haskoin.Crypto.Keys.Compressed’ with ‘haskoin-core-0.4.0:Network.Haskoin.Crypto.Keys.Generic’ Expected type: HC.PubKey Actual type: HC.PubKeyC • In the third argument of ‘HC.verifySig’, namely ‘(getPubKey pk)’ In the expression: HC.verifySig hash sig (getPubKey pk) In an equation for ‘verifySenderPayment’: verifySenderPayment hash pk sig = HC.verifySig hash sig (getPubKey pk) cabal: Leaving directory '/tmp/cabal-tmp-28938/bitcoin-payment-channel-0.6.0.0' cabal: Error: some packages failed to install: bitcoin-payment-channel-0.6.0.0 failed during the building phase. The exception was: ExitFailure 1