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 OneTuple-0.2.2 Starting base-orphans-0.8.1 Starting Only-0.1 Starting base-compat-0.11.0 Building OneTuple-0.2.2 Building Only-0.1 Building base-orphans-0.8.1 Building base-compat-0.11.0 Completed base-orphans-0.8.1 Starting base-prelude-1.3 Completed OneTuple-0.2.2 Starting base16-bytestring-0.1.1.6 Completed Only-0.1 Starting basement-0.0.11 Building base-prelude-1.3 Building base16-bytestring-0.1.1.6 Building basement-0.0.11 Completed base16-bytestring-0.1.1.6 Starting cereal-0.5.8.1 Building cereal-0.5.8.1 Completed base-compat-0.11.0 Starting cryptohash-md5-0.11.100.1 Completed base-prelude-1.3 Starting cryptohash-sha1-0.11.100.1 Building cryptohash-md5-0.11.100.1 Building cryptohash-sha1-0.11.100.1 Completed cryptohash-md5-0.11.100.1 Starting data-bword-0.1.0.1 Building data-bword-0.1.0.1 Completed cryptohash-sha1-0.11.100.1 Starting data-checked-0.3 Completed cereal-0.5.8.1 Starting data-default-class-0.1.2.0 Building data-checked-0.3 Building data-default-class-0.1.2.0 Completed data-bword-0.1.0.1 Starting data-endian-0.1.1 Completed data-checked-0.3 Starting dlist-0.8.0.7 Building data-endian-0.1.1 Completed data-default-class-0.1.2.0 Starting double-conversion-2.0.2.0 Building dlist-0.8.0.7 Building double-conversion-2.0.2.0 Completed data-endian-0.1.1 Starting entropy-0.4.1.5 Completed dlist-0.8.0.7 Starting hashable-1.3.0.0 Building hashable-1.3.0.0 Building entropy-0.4.1.5 Completed double-conversion-2.0.2.0 Starting integer-logarithms-1.0.3 Building integer-logarithms-1.0.3 Completed hashable-1.3.0.0 Starting loch-th-0.2.2 Building loch-th-0.2.2 Completed entropy-0.4.1.5 Starting network-3.1.1.0 Completed integer-logarithms-1.0.3 Starting network-info-0.2.0.10 Building network-info-0.2.0.10 Completed loch-th-0.2.2 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed network-info-0.2.0.10 Starting placeholders-0.1 Building network-3.1.1.0 Completed old-locale-1.0.0.7 Starting pretty-hex-1.0 Building placeholders-0.1 Building pretty-hex-1.0 Completed pretty-hex-1.0 Starting primitive-0.7.0.0 Completed placeholders-0.1 Starting random-1.1 Building primitive-0.7.0.0 Building random-1.1 Completed random-1.1 Starting semigroups-0.19.1 Building semigroups-0.19.1 Completed semigroups-0.19.1 Starting split-0.2.3.3 Building split-0.2.3.3 Completed network-3.1.1.0 Starting tagged-0.8.6 Building tagged-0.8.6 Completed split-0.2.3.3 Starting th-abstraction-0.3.1.0 Building th-abstraction-0.3.1.0 Completed tagged-0.8.6 Starting transformers-compat-0.6.5 Building transformers-compat-0.6.5 Completed primitive-0.7.0.0 Starting type-hint-0.1 Building type-hint-0.1 Completed th-abstraction-0.3.1.0 Starting utf8-string-1.0.1.1 Completed transformers-compat-0.6.5 Starting time-compat-1.9.2.2 Building utf8-string-1.0.1.1 Building time-compat-1.9.2.2 Completed type-hint-0.1 Starting single-tuple-0.1.0.0 Completed basement-0.0.11 Starting binary-parser-0.5.5 Building single-tuple-0.1.0.0 Building binary-parser-0.5.5 Completed single-tuple-0.1.0.0 Starting unordered-containers-0.2.10.0 Building unordered-containers-0.2.10.0 Completed utf8-string-1.0.1.1 Starting data-dword-0.3.1.2 Completed time-compat-1.9.2.2 Starting case-insensitive-1.2.1.0 Building data-dword-0.3.1.2 Building case-insensitive-1.2.1.0 Completed binary-parser-0.5.5 Starting old-time-1.1.0.3 Completed case-insensitive-1.2.1.0 Starting uuid-types-1.0.3 Building old-time-1.1.0.3 Building uuid-types-1.0.3 Completed uuid-types-1.0.3 Starting bytestring-strict-builder-0.4.5.3 Completed old-time-1.1.0.3 Starting vector-0.12.0.3 Building bytestring-strict-builder-0.4.5.3 Building vector-0.12.0.3 Completed unordered-containers-0.2.10.0 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed bytestring-strict-builder-0.4.5.3 Starting exceptions-0.10.3 Building exceptions-0.10.3 Completed scientific-0.3.6.2 Starting memory-0.15.0 Building memory-0.15.0 Completed exceptions-0.10.3 Starting list-tuple-0.1.1.0 Building list-tuple-0.1.1.0 Completed memory-0.15.0 Starting homotuple-0.1.0.0 Building homotuple-0.1.0.0 Completed homotuple-0.1.0.0 Starting text-latin1-0.3.1 Building text-latin1-0.3.1 Completed list-tuple-0.1.1.0 Starting uuid-1.3.13 Building uuid-1.3.13 Completed uuid-1.3.13 Starting convertible-1.1.1.0 Completed text-latin1-0.3.1 Starting charset-0.3.7.1 Building convertible-1.1.1.0 Building charset-0.3.7.1 Completed charset-0.3.7.1 Starting attoparsec-0.13.2.3 Building attoparsec-0.13.2.3 Completed vector-0.12.0.3 Starting safe-exceptions-0.1.7.0 Building safe-exceptions-0.1.7.0 Completed convertible-1.1.1.0 Starting text-printer-0.5.0.1 Completed safe-exceptions-0.1.7.0 Starting HDBC-2.4.0.3 Building text-printer-0.5.0.1 Building HDBC-2.4.0.3 Completed data-dword-0.3.1.2 Completed attoparsec-0.13.2.3 Starting parsers-0.12.10 Starting aeson-1.4.5.0 Building parsers-0.12.10 Building aeson-1.4.5.0 Completed HDBC-2.4.0.3 Completed text-printer-0.5.0.1 Completed parsers-0.12.10 Starting data-textual-0.3.0.2 Starting data-serializer-0.3.4 Building data-serializer-0.3.4 Building data-textual-0.3.0.2 Completed data-serializer-0.3.4 Completed data-textual-0.3.0.2 Starting network-ip-0.3.0.2 Building network-ip-0.3.0.2 Completed network-ip-0.3.0.2 Completed aeson-1.4.5.0 Starting postgresql-binary-0.12.1.3 Building postgresql-binary-0.12.1.3 Completed postgresql-binary-0.12.1.3 Starting postgresql-pure-0.1.0.0 Building postgresql-pure-0.1.0.0 Failed to install postgresql-pure-0.1.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/postgresql-pure-0.1.0.0-IycDCqnMhDS6iubKtaLQNF.log ): cabal: Entering directory '/tmp/cabal-tmp-22111/postgresql-pure-0.1.0.0' Configuring postgresql-pure-0.1.0.0... Preprocessing library for postgresql-pure-0.1.0.0.. Building library for postgresql-pure-0.1.0.0.. [ 1 of 17] Compiling Database.PostgreSQL.Pure.Internal.IsLabel ( src/Database/PostgreSQL/Pure/Internal/IsLabel.hs, dist/build/Database/PostgreSQL/Pure/Internal/IsLabel.o ) [ 2 of 17] Compiling Database.PostgreSQL.Pure.Internal.MonadFail ( src/Database/PostgreSQL/Pure/Internal/MonadFail.hs, dist/build/Database/PostgreSQL/Pure/Internal/MonadFail.o ) [ 3 of 17] Compiling Database.PostgreSQL.Pure.Oid ( src/Database/PostgreSQL/Pure/Oid.hs, dist/build/Database/PostgreSQL/Pure/Oid.o ) [ 4 of 17] Compiling Database.PostgreSQL.Pure.Internal.Data ( src/Database/PostgreSQL/Pure/Internal/Data.hs, dist/build/Database/PostgreSQL/Pure/Internal/Data.o ) [ 5 of 17] Compiling Database.PostgreSQL.Pure.Internal.Exception ( src/Database/PostgreSQL/Pure/Internal/Exception.hs, dist/build/Database/PostgreSQL/Pure/Internal/Exception.o ) [ 6 of 17] Compiling Database.PostgreSQL.Simple.Time.Internal.Parser ( src/Database/PostgreSQL/Simple/Time/Internal/Parser.hs, dist/build/Database/PostgreSQL/Simple/Time/Internal/Parser.o ) [ 7 of 17] Compiling Database.PostgreSQL.Pure.Internal.Parser ( src/Database/PostgreSQL/Pure/Internal/Parser.hs, dist/build/Database/PostgreSQL/Pure/Internal/Parser.o ) [ 8 of 17] Compiling Database.PostgreSQL.Pure.Internal.SocketIO ( src/Database/PostgreSQL/Pure/Internal/SocketIO.hs, dist/build/Database/PostgreSQL/Pure/Internal/SocketIO.o ) src/Database/PostgreSQL/Pure/Internal/SocketIO.hs:111:41: error: • Variable not in scope: nBytes :: Int • Perhaps you meant ‘nbytes’ (line 111) | 111 | recvBuf s ptr nbytes = NS.recvBuf s ptr nBytes | ^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-22111/postgresql-pure-0.1.0.0' cabal: Error: some packages failed to install: postgresql-pure-0.1.0.0-IycDCqnMhDS6iubKtaLQNF failed during the building phase. The exception was: ExitFailure 1