Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting byteable-0.1.1 Starting basement-0.0.8 Starting blaze-builder-0.4.1.0 Starting base-compat-0.10.5 Building byteable-0.1.1 Building basement-0.0.8 Building blaze-builder-0.4.1.0 Building base-compat-0.10.5 Completed byteable-0.1.1 Starting call-stack-0.1.0 Building call-stack-0.1.0 Completed call-stack-0.1.0 Starting cereal-0.5.8.0 Completed blaze-builder-0.4.1.0 Starting clock-0.7.2 Building cereal-0.5.8.0 Building clock-0.7.2 Completed base-compat-0.10.5 Starting cmdargs-0.10.20 Completed clock-0.7.2 Starting colour-2.3.4 Building cmdargs-0.10.20 Building colour-2.3.4 Completed cereal-0.5.8.0 Starting data-default-class-0.1.2.0 Building data-default-class-0.1.2.0 Completed data-default-class-0.1.2.0 Starting dlist-0.8.0.5 Building dlist-0.8.0.5 Completed colour-2.3.4 Starting flippers-1.0.1 Building flippers-1.0.1 Completed flippers-1.0.1 Starting hashable-1.2.7.0 Building hashable-1.2.7.0 Completed dlist-0.8.0.5 Starting haskell-lexer-1.0.2 Building haskell-lexer-1.0.2 Completed hashable-1.2.7.0 Starting hourglass-0.2.12 Building hourglass-0.2.12 Completed cmdargs-0.10.20 Starting integer-logarithms-1.0.2.2 Building integer-logarithms-1.0.2.2 Completed hourglass-0.2.12 Starting mime-types-0.1.0.9 Building mime-types-0.1.0.9 Completed integer-logarithms-1.0.2.2 Starting mtlparse-0.1.4.0 Building mtlparse-0.1.4.0 Completed mtlparse-0.1.4.0 Starting network-2.8.0.0 Completed mime-types-0.1.0.9 Starting network-uri-2.6.1.0 Building network-2.8.0.0 Building network-uri-2.6.1.0 Completed haskell-lexer-1.0.2 Starting primitive-0.6.4.0 Building primitive-0.6.4.0 Completed network-uri-2.6.1.0 Starting random-1.1 Building random-1.1 Completed basement-0.0.8 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting split-0.2.3.3 Building split-0.2.3.3 Completed random-1.1 Starting tagged-0.8.6 Building tagged-0.8.6 Completed network-2.8.0.0 Starting tagsoup-0.14.7 Completed split-0.2.3.3 Starting th-abstraction-0.2.10.0 Building tagsoup-0.14.7 Building th-abstraction-0.2.10.0 Completed tagged-0.8.6 Starting time-locale-compat-0.1.1.5 Building time-locale-compat-0.1.1.5 Completed time-locale-compat-0.1.1.5 Starting transformers-compat-0.6.2 Completed primitive-0.6.4.0 Starting utf8-string-1.0.1.1 Building transformers-compat-0.6.2 Building utf8-string-1.0.1.1 Completed th-abstraction-0.2.10.0 Starting void-0.7.2 Building void-0.7.2 Completed void-0.7.2 Starting zlib-0.6.2 Building zlib-0.6.2 Completed transformers-compat-0.6.2 Starting HUnit-1.6.0.0 Building HUnit-1.6.0.0 Completed utf8-string-1.0.1.1 Starting cookie-0.4.4 Building cookie-0.4.4 Completed HUnit-1.6.0.0 Starting ansi-terminal-0.8.2 Completed cookie-0.4.4 Starting unordered-containers-0.2.9.0 Building ansi-terminal-0.8.2 Building unordered-containers-0.2.9.0 Completed tagsoup-0.14.7 Starting case-insensitive-1.2.0.11 Completed zlib-0.6.2 Starting async-2.2.1 Building case-insensitive-1.2.0.11 Building async-2.2.1 Completed ansi-terminal-0.8.2 Starting pretty-show-1.9.5 Completed case-insensitive-1.2.0.11 Starting memory-0.14.18 Building pretty-show-1.9.5 Building memory-0.14.18 Completed async-2.2.1 Starting uuid-types-1.0.3 Building uuid-types-1.0.3 Completed uuid-types-1.0.3 Starting socks-0.5.6 Building socks-0.5.6 Completed unordered-containers-0.2.9.0 Starting vector-0.12.0.2 Building vector-0.12.0.2 Completed pretty-show-1.9.5 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed socks-0.5.6 Starting mmorph-1.1.2 Building mmorph-1.1.2 Completed memory-0.14.18 Starting exceptions-0.10.0 Building exceptions-0.10.0 Completed scientific-0.3.6.2 Starting regexpr-0.5.4 Completed mmorph-1.1.2 Starting ansi-wl-pprint-0.6.8.2 Building regexpr-0.5.4 Building ansi-wl-pprint-0.6.8.2 Completed exceptions-0.10.0 Starting http-types-0.12.2 Completed regexpr-0.5.4 Starting streaming-commons-0.2.1.0 Building http-types-0.12.2 Completed ansi-wl-pprint-0.6.8.2 Starting pem-0.2.4 Building streaming-commons-0.2.1.0 Building pem-0.2.4 Completed pem-0.2.4 Starting cryptonite-0.25 Building cryptonite-0.25 Completed http-types-0.12.2 Starting asn1-types-0.3.2 Building asn1-types-0.3.2 Completed asn1-types-0.3.2 Starting attoparsec-0.13.2.2 Completed streaming-commons-0.2.1.0 Starting pipes-4.3.9 Building attoparsec-0.13.2.2 Building pipes-4.3.9 Completed pipes-4.3.9 Starting optparse-applicative-0.14.3.0 Building optparse-applicative-0.14.3.0 Completed attoparsec-0.13.2.2 Starting asn1-encoding-0.9.5 Building asn1-encoding-0.9.5 Completed vector-0.12.0.2 Starting http-client-0.6.1 Completed asn1-encoding-0.9.5 Starting aeson-1.4.2.0 Building http-client-0.6.1 Building aeson-1.4.2.0 Completed optparse-applicative-0.14.3.0 Starting asn1-parse-0.9.4 Building asn1-parse-0.9.4 Completed asn1-parse-0.9.4 Completed http-client-0.6.1 Completed aeson-1.4.2.0 Starting aeson-pretty-0.8.7 Building aeson-pretty-0.8.7 Completed aeson-pretty-0.8.7 Completed cryptonite-0.25 Starting x509-1.7.5 Building x509-1.7.5 Completed x509-1.7.5 Starting x509-store-1.6.7 Building x509-store-1.6.7 Completed x509-store-1.6.7 Starting x509-system-1.6.6 Starting x509-validation-1.6.11 Building x509-validation-1.6.11 Building x509-system-1.6.6 Completed x509-system-1.6.6 Completed x509-validation-1.6.11 Starting tls-1.4.1 Building tls-1.4.1 Completed tls-1.4.1 Starting connection-0.2.8 Building connection-0.2.8 Completed connection-0.2.8 Starting http-client-tls-0.3.5.3 Building http-client-tls-0.3.5.3 Completed http-client-tls-0.3.5.3 Starting pipes-http-1.0.5 Building pipes-http-1.0.5 Completed pipes-http-1.0.5 Starting VKHS-1.9.2 Building VKHS-1.9.2 Failed to install VKHS-1.9.2 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/VKHS-1.9.2-LlKQUPEqIsh6JQb42hGx48.log ): cabal: Entering directory '/tmp/cabal-tmp-8304/VKHS-1.9.2' Configuring VKHS-1.9.2... Preprocessing library for VKHS-1.9.2.. Building library for VKHS-1.9.2.. [ 1 of 16] Compiling Network.Shpider.Pairs ( src/Network/Shpider/Pairs.hs, dist/build/Network/Shpider/Pairs.o ) [ 2 of 16] Compiling Network.Shpider.TextUtils ( src/Network/Shpider/TextUtils.hs, dist/build/Network/Shpider/TextUtils.o ) [ 3 of 16] Compiling Text.HTML.TagSoup.Parsec ( src/Text/HTML/TagSoup/Parsec.hs, dist/build/Text/HTML/TagSoup/Parsec.o ) [ 4 of 16] Compiling Network.Shpider.Forms ( src/Network/Shpider/Forms.hs, dist/build/Network/Shpider/Forms.o ) [ 5 of 16] Compiling Text.Namefilter ( src/Text/Namefilter.hs, dist/build/Text/Namefilter.o ) [ 6 of 16] Compiling Text.PFormat ( src/Text/PFormat.hs, dist/build/Text/PFormat.o ) [ 7 of 16] Compiling Web.VKHS.Imports ( src/Web/VKHS/Imports.hs, dist/build/Web/VKHS/Imports.o ) src/Web/VKHS/Imports.hs:108:29: warning: [-Wname-shadowing] This binding for ‘i’ shadows the existing binding bound at src/Web/VKHS/Imports.hs:108:9 | 108 | whileM_ i f = whileM i () (\i () -> (,()) <$> f i) | ^ [ 8 of 16] Compiling Web.VKHS.Types ( src/Web/VKHS/Types.hs, dist/build/Web/VKHS/Types.o ) src/Web/VKHS/Types.hs:19:1: warning: [-Wdodgy-imports] The import item ‘NominalDiffTime(..)’ suggests that ‘NominalDiffTime’ has (in-scope) constructors or class methods, but it has none | 19 | import Data.Time (secondsToDiffTime,NominalDiffTime(..),UTCTime(..),diffUTCTime) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 9 of 16] Compiling Web.VKHS.Client ( src/Web/VKHS/Client.hs, dist/build/Web/VKHS/Client.o ) src/Web/VKHS/Client.hs:281:3: error: • Could not deduce (Control.Monad.Fail.MonadFail m) arising from a do statement with the failable pattern ‘(Right ClientRequest {..})’ from the context: MonadClient m s bound by the type signature for: downloadFileWith :: forall (m :: * -> *) s. MonadClient m s => URL -> (ByteString -> IO ()) -> m () at src/Web/VKHS/Client.hs:278:1-77 Possible fix: add (Control.Monad.Fail.MonadFail m) to the context of the type signature for: downloadFileWith :: forall (m :: * -> *) s. MonadClient m s => URL -> (ByteString -> IO ()) -> m () • In a stmt of a 'do' block: (Right ClientRequest {..}) <- requestCreateGet url (cookiesCreate ()) In the expression: do (ClientState {..}) <- toClientState <$> get (Right ClientRequest {..}) <- requestCreateGet url (cookiesCreate ()) liftIO $ Pipes.withHTTP req cl_man $ \ resp -> do ... In an equation for ‘downloadFileWith’: downloadFileWith url h = do (ClientState {..}) <- toClientState <$> get (Right ClientRequest {..}) <- requestCreateGet url (cookiesCreate ()) liftIO $ Pipes.withHTTP req cl_man $ \ resp -> ... | 281 | (Right ClientRequest{..}) <- requestCreateGet url (cookiesCreate ()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-8304/VKHS-1.9.2' cabal: Error: some packages failed to install: VKHS-1.9.2-LlKQUPEqIsh6JQb42hGx48 failed during the building phase. The exception was: ExitFailure 1