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 base-orphans-0.8.1 Starting dlist-0.8.0.6 Starting hashable-1.2.7.0 Starting base-compat-0.10.5 Building base-orphans-0.8.1 Building dlist-0.8.0.6 Building hashable-1.2.7.0 Building base-compat-0.10.5 Completed base-orphans-0.8.1 Starting integer-logarithms-1.0.3 Building integer-logarithms-1.0.3 Completed dlist-0.8.0.6 Starting primitive-0.7.0.0 Building primitive-0.7.0.0 Completed hashable-1.2.7.0 Starting random-1.1 Completed integer-logarithms-1.0.3 Starting tagged-0.8.6 Building random-1.1 Building tagged-0.8.6 Completed base-compat-0.10.5 Starting th-abstraction-0.3.1.0 Building th-abstraction-0.3.1.0 Completed tagged-0.8.6 Starting time-compat-1.9.2.2 Completed random-1.1 Starting unordered-containers-0.2.10.0 Building time-compat-1.9.2.2 Building unordered-containers-0.2.10.0 Completed th-abstraction-0.3.1.0 Starting uuid-types-1.0.3 Building uuid-types-1.0.3 Completed time-compat-1.9.2.2 Completed uuid-types-1.0.3 Completed primitive-0.7.0.0 Starting wide-word-0.1.0.8 Starting scientific-0.3.6.2 Starting vector-0.12.0.3 Building scientific-0.3.6.2 Building wide-word-0.1.0.8 Building vector-0.12.0.3 Completed unordered-containers-0.2.10.0 Starting primitive-unlifted-0.1.2.0 Building primitive-unlifted-0.1.2.0 Completed wide-word-0.1.0.8 Starting primitive-offset-0.2.0.0 Building primitive-offset-0.2.0.0 Completed scientific-0.3.6.2 Starting primitive-addr-0.1.0.2 Completed primitive-unlifted-0.1.2.0 Starting attoparsec-0.13.2.2 Building primitive-addr-0.1.0.2 Building attoparsec-0.13.2.2 Completed primitive-offset-0.2.0.0 Starting error-codes-0.1.0.1 Building error-codes-0.1.0.1 Completed primitive-addr-0.1.0.2 Starting posix-api-0.3.0.0 Building posix-api-0.3.0.0 Completed error-codes-0.1.0.1 Starting byteslice-0.1.1.0 Building byteslice-0.1.1.0 Completed byteslice-0.1.1.0 Completed attoparsec-0.13.2.2 Completed posix-api-0.3.0.0 Completed vector-0.12.0.3 Starting aeson-1.4.4.0 Building aeson-1.4.4.0 Completed aeson-1.4.4.0 Starting ip-1.5.0 Building ip-1.5.0 Completed ip-1.5.0 Starting sockets-0.5.0.0 Building sockets-0.5.0.0 Failed to install sockets-0.5.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/sockets-0.5.0.0-4gtgIrU9k536uYjXhjpQN9.log ): cabal: Entering directory '/tmp/cabal-tmp-25826/sockets-0.5.0.0' Configuring sockets-0.5.0.0... Preprocessing library 'sockets-internal' for sockets-0.5.0.0.. Building library 'sockets-internal' for sockets-0.5.0.0.. [ 1 of 25] Compiling Hybrid.Send.MutableBytes.AddrLength ( src-internal/Hybrid/Send/MutableBytes/AddrLength.hs, dist/build/sockets-internal/Hybrid/Send/MutableBytes/AddrLength.o ) [ 2 of 25] Compiling Socket ( src-internal/Socket.hs, dist/build/sockets-internal/Socket.o ) src-internal/Socket.hs:34:1: warning: [-Wunused-imports] The import of ‘Data.Kind’ is redundant except perhaps to import instances from ‘Data.Kind’ To import instances alone, use: import Data.Kind() | 34 | import Data.Kind (Type) | ^^^^^^^^^^^^^^^^^^^^^^^ src-internal/Socket.hs:35:1: warning: [-Wunused-imports] The import of ‘Foreign.C.Types’ is redundant except perhaps to import instances from ‘Foreign.C.Types’ To import instances alone, use: import Foreign.C.Types() | 35 | import Foreign.C.Types (CInt) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 3 of 25] Compiling Socket.AddrLength ( src-internal/Socket/AddrLength.hs, dist/build/sockets-internal/Socket/AddrLength.o ) [ 4 of 25] Compiling Socket.Bytes ( src-internal/Socket/Bytes.hs, dist/build/sockets-internal/Socket/Bytes.o ) [ 5 of 25] Compiling Socket.Connected.Bytes ( src-internal/Socket/Connected/Bytes.hs, dist/build/sockets-internal/Socket/Connected/Bytes.o ) [ 6 of 25] Compiling Socket.Connected.UnmanagedBytes ( src-internal/Socket/Connected/UnmanagedBytes.hs, dist/build/sockets-internal/Socket/Connected/UnmanagedBytes.o ) src-internal/Socket/Connected/UnmanagedBytes.hs:18:1: warning: [-Wunused-imports] The import of ‘CInt’ from module ‘Foreign.C.Types’ is redundant | 18 | import Foreign.C.Types (CInt,CSize) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 7 of 25] Compiling Socket.Debug ( src-production/Socket/Debug.hs, dist/build/sockets-internal/Socket/Debug.o ) [ 8 of 25] Compiling Socket.Error ( src-noerr/Socket/Error.hs, dist/build/sockets-internal/Socket/Error.o ) [ 9 of 25] Compiling Socket.Discard ( src-internal/Socket/Discard.hs, dist/build/sockets-internal/Socket/Discard.o ) src-internal/Socket/Discard.hs:23:1: warning: [-Wunused-imports] The import of ‘Data.Primitive’ is redundant except perhaps to import instances from ‘Data.Primitive’ To import instances alone, use: import Data.Primitive() | 23 | import Data.Primitive (SmallArray,SmallMutableArray) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src-internal/Socket/Discard.hs:24:1: warning: [-Wunused-imports] The import of ‘Data.Word’ is redundant except perhaps to import instances from ‘Data.Word’ To import instances alone, use: import Data.Word() | 24 | import Data.Word (Word16) | ^^^^^^^^^^^^^^^^^^^^^^^^^ [10 of 25] Compiling Socket.EventManager ( src-internal/Socket/EventManager.hs, dist/build/sockets-internal/Socket/EventManager.o ) [11 of 25] Compiling Socket.IPv4 ( src-internal/Socket/IPv4.hs, dist/build/sockets-internal/Socket/IPv4.o ) [12 of 25] Compiling Socket.Destined.IPv4.UnmanagedBytes ( src-internal/Socket/Destined/IPv4/UnmanagedBytes.hs, dist/build/sockets-internal/Socket/Destined/IPv4/UnmanagedBytes.o ) src-internal/Socket/Destined/IPv4/UnmanagedBytes.hs:29:3: error: Not in scope: ‘S.uninterruptibleSendToInternet’ Perhaps you meant one of these: ‘S.uninterruptibleSendToByteArray’ (imported from Posix.Socket), ‘S.uninterruptibleSendByteArray’ (imported from Posix.Socket) Module ‘Posix.Socket’ does not export ‘uninterruptibleSendToInternet’. | 29 | S.uninterruptibleSendToInternet sock arr | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-25826/sockets-0.5.0.0' cabal: Error: some packages failed to install: sockets-0.5.0.0-4gtgIrU9k536uYjXhjpQN9 failed during the building phase. The exception was: ExitFailure 1