Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: OpenGL-3.0.2.0 GLUT-2.7.0.12 attoparsec-0.13.2.0 Continuing even though the plan contains dangerous reinstalls. Configuring async-2.2.1... Configuring Only-0.1... Building Only-0.1... Building async-2.2.1... Installed Only-0.1 Configuring auto-update-0.1.4... Installed async-2.2.1 Configuring base-compat-0.9.3... Building auto-update-0.1.4... Building base-compat-0.9.3... Installed auto-update-0.1.4 Configuring base-orphans-0.6... Building base-orphans-0.6... Installed base-orphans-0.6 Configuring blaze-builder-0.4.0.2... Installed base-compat-0.9.3 Configuring cabal-doctest-1.0.6... Building blaze-builder-0.4.0.2... Building cabal-doctest-1.0.6... Installed blaze-builder-0.4.0.2 Configuring clock-0.7.2... Installed cabal-doctest-1.0.6 Configuring colour-2.3.4... Building clock-0.7.2... Building colour-2.3.4... Installed clock-0.7.2 Configuring cryptohash-md5-0.11.100.1... Building cryptohash-md5-0.11.100.1... Installed cryptohash-md5-0.11.100.1 Configuring cryptohash-sha1-0.11.100.1... Building cryptohash-sha1-0.11.100.1... Installed colour-2.3.4 Configuring dlist-0.8.0.4... Building dlist-0.8.0.4... Installed cryptohash-sha1-0.11.100.1 Configuring easy-file-0.2.1... Building easy-file-0.2.1... Installed dlist-0.8.0.4 Configuring entropy-0.3.8... Installed easy-file-0.2.1 Configuring fail-4.9.0.0... Building fail-4.9.0.0... Installed fail-4.9.0.0 Configuring js-flot-0.8.3... Building entropy-0.3.8... Building js-flot-0.8.3... Installed js-flot-0.8.3 Configuring js-jquery-3.3.1... Building js-jquery-3.3.1... Installed entropy-0.3.8 Configuring monad-loops-0.4.3... Building monad-loops-0.4.3... Installed js-jquery-3.3.1 Configuring network-info-0.2.0.9... Building network-info-0.2.0.9... Installed monad-loops-0.4.3 Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Installed network-info-0.2.0.9 Configuring reflection-2.1.3... Building reflection-2.1.3... Installed old-locale-1.0.0.7 Configuring safe-0.3.16... Building safe-0.3.16... Installed safe-0.3.16 Configuring semigroups-0.18.4... Building semigroups-0.18.4... Installed reflection-2.1.3 Configuring stm-chans-3.0.0.4... Installed semigroups-0.18.4 Configuring system-filepath-0.4.14... Building stm-chans-3.0.0.4... Building system-filepath-0.4.14... Installed stm-chans-3.0.0.4 Configuring text-manipulate-0.2.0.1... Building text-manipulate-0.2.0.1... Installed system-filepath-0.4.14 Configuring th-abstraction-0.2.6.0... Installed text-manipulate-0.2.0.1 Configuring time-locale-compat-0.1.1.3... Building th-abstraction-0.2.6.0... Building time-locale-compat-0.1.1.3... Installed time-locale-compat-0.1.1.3 Configuring transformers-0.5.5.0... Building transformers-0.5.5.0... Installed th-abstraction-0.2.6.0 Configuring utf8-string-1.0.1.1... Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring uuid-types-1.0.3... Building uuid-types-1.0.3... Installed transformers-0.5.5.0 Configuring void-0.7.2... Installed uuid-types-1.0.3 Configuring extra-1.6.4... Building void-0.7.2... Building extra-1.6.4... Installed void-0.7.2 Configuring ansi-terminal-0.8.0.1... Building ansi-terminal-0.8.0.1... Installed ansi-terminal-0.8.0.1 Configuring old-time-1.1.0.3... Installed extra-1.6.4 Configuring unliftio-core-0.1.1.0... Building unliftio-core-0.1.1.0... Building old-time-1.1.0.3... Installed unliftio-core-0.1.1.0 Configuring typed-process-0.2.1.0... Building typed-process-0.2.1.0... Installed old-time-1.1.0.3 Configuring transformers-compat-0.6.0.6... Installed typed-process-0.2.1.0 Configuring streaming-commons-0.1.19... Building transformers-compat-0.6.0.6... Building streaming-commons-0.1.19... Installed transformers-compat-0.6.0.6 Configuring primitive-0.6.3.0... Building primitive-0.6.3.0... Installed streaming-commons-0.1.19 Configuring mtl-2.2.2... Building mtl-2.2.2... Installed primitive-0.6.3.0 Configuring StateVar-1.1.0.4... Building StateVar-1.1.0.4... Installed mtl-2.2.2 Configuring uuid-1.3.13... Building uuid-1.3.13... Installed StateVar-1.1.0.4 Configuring ansi-wl-pprint-0.6.8.2... Building ansi-wl-pprint-0.6.8.2... Installed uuid-1.3.13 Configuring unix-time-0.3.8... Installed ansi-wl-pprint-0.6.8.2 Configuring transformers-base-0.4.4... Building unix-time-0.3.8... Building transformers-base-0.4.4... Installed transformers-base-0.4.4 Configuring tagged-0.8.5... Building tagged-0.8.5... Installed unix-time-0.3.8 Configuring vector-0.12.0.1... Building vector-0.12.0.1... Installed tagged-0.8.5 Configuring shake-0.16.3... Building shake-0.16.3... Installed vector-0.12.0.1 Configuring scientific-0.3.5.2... Building scientific-0.3.5.2... Installed scientific-0.3.5.2 Configuring regex-base-0.93.2... Building regex-base-0.93.2... Installed regex-base-0.93.2 Configuring exceptions-0.9.0... Building exceptions-0.9.0... Installed exceptions-0.9.0 Configuring constraints-0.10... Building constraints-0.10... Installed shake-0.16.3 Configuring MonadRandom-0.2... Building MonadRandom-0.2... Installed MonadRandom-0.2 Configuring contravariant-1.4.1... Building contravariant-1.4.1... Installed constraints-0.10 Configuring optparse-applicative-0.14.2.0... Building optparse-applicative-0.14.2.0... Installed contravariant-1.4.1 Configuring monad-control-1.0.2.3... Building monad-control-1.0.2.3... Installed monad-control-1.0.2.3 Configuring fast-logger-2.4.11... Building fast-logger-2.4.11... Installed optparse-applicative-0.14.2.0 Configuring distributive-0.5.3... Installed fast-logger-2.4.11 Configuring vector-algorithms-0.7.0.1... Building distributive-0.5.3... Building vector-algorithms-0.7.0.1... Installed distributive-0.5.3 Configuring basic-prelude-0.7.0... Building basic-prelude-0.7.0... Installed basic-prelude-0.7.0 Configuring attoparsec-0.13.2.2... Building attoparsec-0.13.2.2... Installed vector-algorithms-0.7.0.1 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Installed regex-posix-0.95.2 Configuring resourcet-1.2.0... Building resourcet-1.2.0... Installed attoparsec-0.13.2.2 Configuring lifted-base-0.2.3.11... Building lifted-base-0.2.3.11... Installed resourcet-1.2.0 Configuring optparse-generic-1.3.0... Building optparse-generic-1.3.0... Installed lifted-base-0.2.3.11 Configuring comonad-5.0.3... Building comonad-5.0.3... Installed optparse-generic-1.3.0 Configuring mono-traversable-1.0.8.1... Building mono-traversable-1.0.8.1... Installed comonad-5.0.3 Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Installed regex-compat-0.95.1 Configuring aeson-1.2.4.0... Building aeson-1.2.4.0... Installed mono-traversable-1.0.8.1 Configuring lifted-async-0.10.0... Building lifted-async-0.10.0... Installed lifted-async-0.10.0 Configuring bifunctors-5.5.2... Building bifunctors-5.5.2... Installed bifunctors-5.5.2 Configuring shakers-0.0.41... Building shakers-0.0.41... Installed aeson-1.2.4.0 Configuring conduit-1.3.0... Building conduit-1.3.0... Installed shakers-0.0.41 Configuring semigroupoids-5.2.2... Building semigroupoids-5.2.2... Installed conduit-1.3.0 Configuring profunctors-5.2.2... Building profunctors-5.2.2... Installed semigroupoids-5.2.2 Configuring conduit-extra-1.3.0... Building conduit-extra-1.3.0... Installed conduit-extra-1.3.0 Configuring monad-logger-0.3.28.1... Building monad-logger-0.3.28.1... Installed profunctors-5.2.2 Configuring free-5... Building free-5... Installed monad-logger-0.3.28.1 Installed free-5 Configuring adjunctions-4.4... Building adjunctions-4.4... Installed adjunctions-4.4 Configuring kan-extensions-5.1... Building kan-extensions-5.1... Installed kan-extensions-5.1 Configuring lens-4.16... Building lens-4.16... Installed lens-4.16 Configuring preamble-0.0.59... Building preamble-0.0.59... Installed preamble-0.0.59 Configuring labsat-0.0.0... Building labsat-0.0.0... Failed to install labsat-0.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/labsat-0.0.0-CyHFBR8LjYzA3z8BMOngiG.log ): cabal: Entering directory '/tmp/cabal-tmp-14808/labsat-0.0.0' Configuring labsat-0.0.0... Preprocessing library for labsat-0.0.0.. Building library for labsat-0.0.0.. [1 of 4] Compiling Labsat.Ctx ( src/Labsat/Ctx.hs, dist/build/Labsat/Ctx.o ) [2 of 4] Compiling Labsat.Types ( src/Labsat/Types.hs, dist/build/Labsat/Types.o ) [3 of 4] Compiling Labsat.Parser ( src/Labsat/Parser.hs, dist/build/Labsat/Parser.o ) [4 of 4] Compiling Labsat ( src/Labsat.hs, dist/build/Labsat.o ) src/Labsat.hs:68:17: error: • Could not deduce (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) arising from a use of ‘runResourceT’ from the context: MonadTcpCtx c m bound by the type signature for: receiveResp :: forall c (m :: * -> *) a. MonadTcpCtx c m => Parser a -> m a at src/Labsat.hs:67:1-49 Possible fix: add (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) to the context of the type signature for: receiveResp :: forall c (m :: * -> *) a. MonadTcpCtx c m => Parser a -> m a • In the expression: runResourceT $ do ad <- view tcpAppData appSource ad =$= colorStripper $$ sinkParser p In an equation for ‘receiveResp’: receiveResp p = runResourceT $ do ad <- view tcpAppData appSource ad =$= colorStripper $$ sinkParser p | 68 | receiveResp p = runResourceT $ do | ^^^^^^^^^^^^^^^^^... src/Labsat.hs:75:14: error: • Could not deduce (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) arising from a use of ‘runResourceT’ from the context: MonadTcpCtx c m bound by the type signature for: logResp :: forall c (m :: * -> *). MonadTcpCtx c m => FilePath -> m () at src/Labsat.hs:74:1-46 Possible fix: add (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) to the context of the type signature for: logResp :: forall c (m :: * -> *). MonadTcpCtx c m => FilePath -> m () • In the expression: runResourceT $ do ad <- view tcpAppData withBinaryFile' lf $ \ lh -> appSource ad =$= colorStripper $$ B.sinkHandle lh In an equation for ‘logResp’: logResp lf = runResourceT $ do ad <- view tcpAppData withBinaryFile' lf $ \ lh -> appSource ad =$= colorStripper $$ B.sinkHandle lh | 75 | logResp lf = runResourceT $ do | ^^^^^^^^^^^^^^^^^... src/Labsat.hs:77:3: error: • Could not deduce (MonadBaseControl IO (resourcet-1.2.0:Control.Monad.Trans.Resource.Internal.ResourceT m)) arising from a use of ‘withBinaryFile'’ from the context: MonadTcpCtx c m bound by the type signature for: logResp :: forall c (m :: * -> *). MonadTcpCtx c m => FilePath -> m () at src/Labsat.hs:74:1-46 • In the expression: withBinaryFile' lf In a stmt of a 'do' block: withBinaryFile' lf $ \ lh -> appSource ad =$= colorStripper $$ B.sinkHandle lh In the second argument of ‘($)’, namely ‘do ad <- view tcpAppData withBinaryFile' lf $ \ lh -> appSource ad =$= colorStripper $$ B.sinkHandle lh’ | 77 | withBinaryFile' lf $ \lh -> | ^^^^^^^^^^^^^^^^^^ src/Labsat.hs:97:5: error: • No instance for (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO (TransT StatsCtx (TransT Ctx IO))) arising from a use of ‘runGeneralTCPClient’ • In the expression: runGeneralTCPClient (clientSettings port host) In the second argument of ‘($)’, namely ‘runGeneralTCPClient (clientSettings port host) $ flip runTcpCtx $ do msg0 <- receiveResp parseUntilPrompt putStrLn "First message:" print msg0 putStrLn "Debug message:" ....’ In the second argument of ‘($)’, namely ‘runStatsCtx $ runGeneralTCPClient (clientSettings port host) $ flip runTcpCtx $ do msg0 <- receiveResp parseUntilPrompt putStrLn "First message:" print msg0 putStrLn "Debug message:" ....’ | 97 | runGeneralTCPClient (clientSettings port host) $ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Labsat.hs:110:3: error: • Could not deduce (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) arising from a use of ‘runGeneralTCPClient’ from the context: (MonadStatsCtx c m, Show a) bound by the type signature for: testCommand :: forall c (m :: * -> *) a. (MonadStatsCtx c m, Show a) => ByteString -> Int -> TransT TcpCtx m a -> m () at src/Labsat.hs:108:1-92 Possible fix: add (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO m) to the context of the type signature for: testCommand :: forall c (m :: * -> *) a. (MonadStatsCtx c m, Show a) => ByteString -> Int -> TransT TcpCtx m a -> m () • In the expression: runGeneralTCPClient (clientSettings port host) In the expression: runGeneralTCPClient (clientSettings port host) $ flip runTcpCtx $ do void $ receiveResp parseFirstLabsatMsg res <- cmd print res In an equation for ‘testCommand’: testCommand host port cmd = runGeneralTCPClient (clientSettings port host) $ flip runTcpCtx $ do void $ receiveResp parseFirstLabsatMsg res <- cmd print res | 110 | runGeneralTCPClient (clientSettings port host) $ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Labsat.hs:500:5: error: • Could not deduce (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO (TransT StatsCtx (TransT Ctx m))) arising from a use of ‘runGeneralTCPClient’ from the context: MonadControl m bound by the type signature for: labsatMain :: forall (m :: * -> *). MonadControl m => Text -> Int -> m () at src/Labsat.hs:492:1-51 • In the expression: runGeneralTCPClient (clientSettings port $ encodeUtf8 ip) In the second argument of ‘($)’, namely ‘runGeneralTCPClient (clientSettings port $ encodeUtf8 ip) $ flip runTcpCtx $ do void $ receiveResp parseFirstLabsatMsg resp <- info print resp’ In the second argument of ‘($)’, namely ‘runStatsCtx $ runGeneralTCPClient (clientSettings port $ encodeUtf8 ip) $ flip runTcpCtx $ do void $ receiveResp parseFirstLabsatMsg resp <- info print resp’ | 500 | runGeneralTCPClient (clientSettings port $ encodeUtf8 ip) $ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-14808/labsat-0.0.0' cabal: Error: some packages failed to install: labsat-0.0.0-CyHFBR8LjYzA3z8BMOngiG failed during the building phase. The exception was: ExitFailure 1