Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring SHA-1.6.4.2... Building ansi-terminal-0.6.2.3... Building SHA-1.6.4.2... Installed ansi-terminal-0.6.2.3 Configuring appar-0.1.4... Building appar-0.1.4... Installed appar-0.1.4 Configuring auto-update-0.1.4... Building auto-update-0.1.4... Installed auto-update-0.1.4 Configuring base-compat-0.9.3... Building base-compat-0.9.3... Configuring base64-bytestring-1.0.0.1... Installed SHA-1.6.4.2 Building base64-bytestring-1.0.0.1... Configuring byteorder-1.0.4... Installed base-compat-0.9.3 Building byteorder-1.0.4... Configuring bytestring-builder-0.10.8.1.0... Installed base64-bytestring-1.0.0.1 Building bytestring-builder-0.10.8.1.0... Configuring cryptohash-sha1-0.11.100.1... Installed bytestring-builder-0.10.8.1.0 Configuring cryptohash-md5-0.11.100.1... Installed byteorder-1.0.4 Building cryptohash-sha1-0.11.100.1... Building cryptohash-md5-0.11.100.1... Configuring data-default-class-0.1.2.0... Installed cryptohash-md5-0.11.100.1 Configuring dlist-0.8.0.2... Installed cryptohash-sha1-0.11.100.1 Building data-default-class-0.1.2.0... Building dlist-0.8.0.2... Configuring easy-file-0.2.1... Installed data-default-class-0.1.2.0 Building easy-file-0.2.1... Configuring entropy-0.3.7... Installed dlist-0.8.0.2 Configuring file-embed-0.0.10... Installed easy-file-0.2.1 Building file-embed-0.0.10... Building entropy-0.3.7... Configuring integer-logarithms-1.0.1... Installed file-embed-0.0.10 Building integer-logarithms-1.0.1... Configuring foundation-0.0.8... Installed entropy-0.3.7 Building foundation-0.0.8... Configuring mtl-2.2.1... Installed integer-logarithms-1.0.1 Building mtl-2.2.1... Configuring network-info-0.2.0.8... Installed mtl-2.2.1 Building network-info-0.2.0.8... Configuring network-2.6.3.1... Installed network-info-0.2.0.8 Building network-2.6.3.1... Configuring old-locale-1.0.0.7... Installed network-2.6.3.1 Building old-locale-1.0.0.7... Configuring random-1.1... Installed old-locale-1.0.0.7 Building random-1.1... Configuring primitive-0.6.2.0... Installed random-1.1 Building primitive-0.6.2.0... Configuring stringsearch-0.3.6.6... Installed primitive-0.6.2.0 Building stringsearch-0.3.6.6... Configuring stm-2.4.4.1... Installed stringsearch-0.3.6.6 Building stm-2.4.4.1... Configuring time-locale-compat-0.1.1.3... Installed stm-2.4.4.1 Building time-locale-compat-0.1.1.3... Configuring text-1.2.2.1... Installed foundation-0.0.8 Configuring unix-compat-0.4.3.1... Installed time-locale-compat-0.1.1.3 Building text-1.2.2.1... Building unix-compat-0.4.3.1... Configuring transformers-compat-0.5.1.4... Installed unix-compat-0.4.3.1 Building transformers-compat-0.5.1.4... Configuring void-0.7.2... Installed transformers-compat-0.5.1.4 Building void-0.7.2... Configuring word8-0.1.2... Installed void-0.7.2 Building word8-0.1.2... Configuring zlib-0.6.1.2... Installed word8-0.1.2 Building zlib-0.6.1.2... Configuring ansi-wl-pprint-0.6.7.3... Installed zlib-0.6.1.2 Building ansi-wl-pprint-0.6.7.3... Installed text-1.2.2.1 Configuring iproute-1.7.1... Building iproute-1.7.1... Installed ansi-wl-pprint-0.6.7.3 Configuring simple-sendfile-0.2.25... Building simple-sendfile-0.2.25... Configuring old-time-1.1.0.3... Installed simple-sendfile-0.2.25 Configuring tf-random-0.5... Installed iproute-1.7.1 Building old-time-1.1.0.3... Building tf-random-0.5... Configuring vector-0.12.0.1... Installed tf-random-0.5 Configuring async-2.1.1.1... Installed old-time-1.1.0.3 Building vector-0.12.0.1... Building async-2.1.1.1... Configuring memory-0.14.5... Installed async-2.1.1.1 Building memory-0.14.5... Configuring exceptions-0.8.3... Installed memory-0.14.5 Building exceptions-0.8.3... Configuring mmorph-1.0.9... Installed exceptions-0.8.3 Building mmorph-1.0.9... Configuring tagged-0.8.5... Installed mmorph-1.0.9 Building tagged-0.8.5... Configuring transformers-base-0.4.4... Installed tagged-0.8.5 Building transformers-base-0.4.4... Installed transformers-base-0.4.4 Configuring hashable-1.2.6.0... Building hashable-1.2.6.0... Configuring blaze-builder-0.4.0.2... Installed vector-0.12.0.1 Building blaze-builder-0.4.0.2... Configuring mime-types-0.1.0.7... Installed hashable-1.2.6.0 Building mime-types-0.1.0.7... Installed blaze-builder-0.4.0.2 Configuring optparse-applicative-0.13.2.0... Building optparse-applicative-0.13.2.0... Installed mime-types-0.1.0.7 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Configuring unix-time-0.3.7... Installed optparse-applicative-0.13.2.0 Building unix-time-0.3.7... Installed unix-time-0.3.7 Configuring cryptonite-0.23... Building cryptonite-0.23... Configuring monad-control-1.0.1.0... Installed QuickCheck-2.9.2 Building monad-control-1.0.1.0... Configuring case-insensitive-1.2.0.9... Installed monad-control-1.0.1.0 Building case-insensitive-1.2.0.9... Configuring scientific-0.3.4.12... Installed case-insensitive-1.2.0.9 Building scientific-0.3.4.12... Configuring psqueues-0.2.2.3... Installed scientific-0.3.4.12 Building psqueues-0.2.2.3... Configuring uuid-types-1.0.3... Installed psqueues-0.2.2.3 Building uuid-types-1.0.3... Configuring unordered-containers-0.2.8.0... Installed uuid-types-1.0.3 Building unordered-containers-0.2.8.0... Configuring blaze-markup-0.8.0.0... Installed unordered-containers-0.2.8.0 Building blaze-markup-0.8.0.0... Configuring cookie-0.4.2.1... Installed cryptonite-0.23 Building cookie-0.4.2.1... Configuring streaming-commons-0.1.17... Installed blaze-markup-0.8.0.0 Installed cookie-0.4.2.1 Building streaming-commons-0.1.17... Configuring fast-logger-2.4.10... Building fast-logger-2.4.10... Installed fast-logger-2.4.10 Configuring lifted-base-0.2.3.10... Building lifted-base-0.2.3.10... Configuring http-types-0.9.1... Installed streaming-commons-0.1.17 Configuring attoparsec-0.13.1.0... Installed lifted-base-0.2.3.10 Building http-types-0.9.1... Building attoparsec-0.13.1.0... Configuring uuid-1.3.13... Installed http-types-0.9.1 Building uuid-1.3.13... Configuring http2-1.6.3... Installed uuid-1.3.13 Building http2-1.6.3... Configuring vault-0.3.0.7... Installed attoparsec-0.13.1.0 Building vault-0.3.0.7... Configuring blaze-html-0.9.0.1... Installed vault-0.3.0.7 Building blaze-html-0.9.0.1... Installed http2-1.6.3 Configuring resourcet-1.1.9... Building resourcet-1.1.9... Configuring http-date-0.0.6.1... Installed resourcet-1.1.9 Building http-date-0.0.6.1... Configuring aeson-1.2.0.0... Installed blaze-html-0.9.0.1 Configuring wai-3.2.1.1... Installed http-date-0.0.6.1 Building aeson-1.2.0.0... Building wai-3.2.1.1... Configuring websockets-0.11.1.0... Installed wai-3.2.1.1 Building websockets-0.11.1.0... Installed websockets-0.11.1.0 Configuring wai-logger-2.3.0... Building wai-logger-2.3.0... Configuring warp-3.2.11.2... Installed wai-logger-2.3.0 Building warp-3.2.11.2... Installed aeson-1.2.0.0 Configuring wai-extra-3.0.19.1... Building wai-extra-3.0.19.1... Installed warp-3.2.11.2 Installed wai-extra-3.0.19.1 Configuring wai-app-static-3.1.6.1... Building wai-app-static-3.1.6.1... Installed wai-app-static-3.1.6.1 Configuring wai-websockets-3.0.1.1... Building wai-websockets-3.0.1.1... Installed wai-websockets-3.0.1.1 Configuring wai-transformers-0.0.7... Building wai-transformers-0.0.7... Installed wai-transformers-0.0.7 Configuring websockets-rpc-0.3.1... Building websockets-rpc-0.3.1... Failed to install websockets-rpc-0.3.1 Build log ( /home/builder/.cabal/logs/websockets-rpc-0.3.1.log ): cabal: Entering directory '/tmp/cabal-tmp-12288/websockets-rpc-0.3.1' Configuring websockets-rpc-0.3.1... Building websockets-rpc-0.3.1... Preprocessing library websockets-rpc-0.3.1... [1 of 5] Compiling Network.WebSockets.RPC.Types ( src/Network/WebSockets/RPC/Types.hs, dist/build/Network/WebSockets/RPC/Types.o ) src/Network/WebSockets/RPC/Types.hs:59:34: warning: [-Wunused-top-binds] Defined but not used: ‘getSubscribe’ src/Network/WebSockets/RPC/Types.hs:95:26: warning: [-Wunused-top-binds] Defined but not used: ‘getReply’ src/Network/WebSockets/RPC/Types.hs:112:32: warning: [-Wunused-top-binds] Defined but not used: ‘getComplete’ [2 of 5] Compiling Network.WebSockets.RPC.Trans.Server ( src/Network/WebSockets/RPC/Trans/Server.hs, dist/build/Network/WebSockets/RPC/Trans/Server.o ) src/Network/WebSockets/RPC/Trans/Server.hs:57:5: warning: [-Wunused-top-binds] Defined but not used: ‘runWebSocketServerRPCT’ [3 of 5] Compiling Network.WebSockets.RPC.Trans.Client ( src/Network/WebSockets/RPC/Trans/Client.hs, dist/build/Network/WebSockets/RPC/Trans/Client.o ) src/Network/WebSockets/RPC/Trans/Client.hs:64:5: warning: [-Wunused-top-binds] Defined but not used: ‘runWebSocketClientRPCT’ [4 of 5] Compiling Network.WebSockets.RPC ( src/Network/WebSockets/RPC.hs, dist/build/Network/WebSockets/RPC.o ) src/Network/WebSockets/RPC.hs:99:7: error: • The constructor ‘Text’ should have 2 arguments, but has been given 1 • In the pattern: Text xs In a case alternative: Text xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure ["server", ....] xs) Just x -> case x of { Sub sub -> runSub sub Sup sup -> runSup sup Ping -> pure () } } In a stmt of a 'do' block: case data' of { Text xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure [...] xs) Just x -> case x of { Sub sub -> ... Sup sup -> ... Ping -> ... } } Binary xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure [...] xs) Just x -> case x of { Sub sub -> ... Sup sup -> ... Ping -> ... } } } src/Network/WebSockets/RPC.hs:180:13: error: • The constructor ‘Text’ should have 2 arguments, but has been given 1 • In the pattern: Text xs In a case alternative: Text xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure ["client", ....] xs) Just x -> case x of { Rep rep -> runRep rep Com com -> runCom com Pong -> liftIO (sendDataMessage conn (Text (encode (Ping :: ClientToServer () ())))) } } In a stmt of a 'do' block: case data' of { Text xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure [...] xs) Just x -> case x of { Rep rep -> ... Com com -> ... Pong -> ... } } Binary xs -> case decode xs of { Nothing -> throwM (WebSocketRPCParseFailure [...] xs) Just x -> case x of { Rep rep -> ... Com com -> ... Pong -> ... } } } cabal: Leaving directory '/tmp/cabal-tmp-12288/websockets-rpc-0.3.1' cabal: Error: some packages failed to install: websockets-rpc-0.3.1 failed during the building phase. The exception was: ExitFailure 1