Resolving dependencies... Build profile: -w ghc-8.6.3 -O1 In order, the following will be built (use -v for more details): - HTTP-4000.3.12 (lib) (requires build) - cabal-install-2.4.1.0 (exe:cabal) (requires build) Configuring library for HTTP-4000.3.12.. Preprocessing library for HTTP-4000.3.12.. Building library for HTTP-4000.3.12.. [ 1 of 18] Compiling Network.HTTP.Base64 ( Network/HTTP/Base64.hs, dist/build/Network/HTTP/Base64.o ) [ 2 of 18] Compiling Network.HTTP.MD5Aux ( Network/HTTP/MD5Aux.hs, dist/build/Network/HTTP/MD5Aux.o ) [ 3 of 18] Compiling Network.HTTP.Utils ( Network/HTTP/Utils.hs, dist/build/Network/HTTP/Utils.o ) [ 4 of 18] Compiling Network.BufferType ( Network/BufferType.hs, dist/build/Network/BufferType.o ) [ 5 of 18] Compiling Network.Stream ( Network/Stream.hs, dist/build/Network/Stream.o ) Network/Stream.hs:35:1: warning: [-Wdeprecations] Module ‘Control.Monad.Error’ is deprecated: Use "Control.Monad.Except" instead | 35 | import Control.Monad.Error | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Network/Stream.hs:44:10: warning: [-Wdeprecations] In the use of type constructor or class ‘Error’ (imported from Control.Monad.Error, but defined in transformers-0.5.5.0:Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 44 | instance Error ConnError where | ^^^^^ Network/Stream.hs:44:10: warning: [-Wdeprecations] In the use of type constructor or class ‘Error’ (imported from Control.Monad.Error, but defined in transformers-0.5.5.0:Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 44 | instance Error ConnError where | ^^^^^ Network/Stream.hs:45:11: warning: [-Wdeprecations] In the use of ‘strMsg’ (imported from Control.Monad.Error, but defined in transformers-0.5.5.0:Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 45 | noMsg = strMsg "unknown error" | ^^^^^^ Network/Stream.hs:52:24: warning: [-Wdeprecations] In the use of ‘strMsg’ (imported from Control.Monad.Error, but defined in transformers-0.5.5.0:Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 52 | failMisc x = failWith (strMsg x) | ^^^^^^ [ 6 of 18] Compiling Network.HTTP.Headers ( Network/HTTP/Headers.hs, dist/build/Network/HTTP/Headers.o ) [ 7 of 18] Compiling Network.HTTP.Cookie ( Network/HTTP/Cookie.hs, dist/build/Network/HTTP/Cookie.o ) [ 8 of 18] Compiling Paths_HTTP ( dist/build/autogen/Paths_HTTP.hs, dist/build/Paths_HTTP.o ) [ 9 of 18] Compiling Network.HTTP.Base ( Network/HTTP/Base.hs, dist/build/Network/HTTP/Base.o ) Network/HTTP/Base.hs:110:1: warning: [-Wdeprecations] Module ‘Control.Monad.Error’ is deprecated: Use "Control.Monad.Except" instead | 110 | import Control.Monad.Error () | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [10 of 18] Compiling Network.TCP ( Network/TCP.hs, dist/build/Network/TCP.o ) Network/TCP.hs:41:6: error: Module ‘Network.Socket’ does not export ‘sClose’ | 41 | , sClose, setSocketOption, getPeerName | ^^^^^^ Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't see the error. cabal: Failed to build HTTP-4000.3.12 (which is required by cabal-install-2.4.1.0).