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 cpu-0.1.2 Starting dlist-0.8.0.5 Starting hashable-1.2.7.0 Starting base-compat-0.10.5 Building cpu-0.1.2 Building dlist-0.8.0.5 Building hashable-1.2.7.0 Building base-compat-0.10.5 Completed cpu-0.1.2 Starting integer-logarithms-1.0.2.2 Building integer-logarithms-1.0.2.2 Completed dlist-0.8.0.5 Starting path-pieces-0.2.1 Building path-pieces-0.2.1 Completed hashable-1.2.7.0 Starting primitive-0.6.4.0 Completed integer-logarithms-1.0.2.2 Starting random-1.1 Building primitive-0.6.4.0 Building random-1.1 Completed path-pieces-0.2.1 Starting tagged-0.8.6 Building tagged-0.8.6 Completed base-compat-0.10.5 Starting th-abstraction-0.2.10.0 Building th-abstraction-0.2.10.0 Completed random-1.1 Starting time-locale-compat-0.1.1.5 Completed tagged-0.8.6 Starting unordered-containers-0.2.9.0 Building time-locale-compat-0.1.1.5 Building unordered-containers-0.2.9.0 Completed time-locale-compat-0.1.1.5 Starting uuid-types-1.0.3 Building uuid-types-1.0.3 Completed th-abstraction-0.2.10.0 Completed uuid-types-1.0.3 Completed primitive-0.6.4.0 Starting scientific-0.3.6.2 Starting posix-api-0.1.0.0 Starting vector-0.12.0.2 Completed unordered-containers-0.2.9.0 Starting contiguous-0.3.2.0 Building scientific-0.3.6.2 Building posix-api-0.1.0.0 Building vector-0.12.0.2 Building contiguous-0.3.2.0 Failed to install posix-api-0.1.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/posix-api-0.1.0.0-275krMPZxPr8oUfOjYuh6e.log ): cabal: Entering directory '/tmp/cabal-tmp-30653/posix-api-0.1.0.0' Configuring posix-api-0.1.0.0... Preprocessing library for posix-api-0.1.0.0.. Building library for posix-api-0.1.0.0.. [1 of 6] Compiling Posix.Directory ( src/Posix/Directory.hs, dist/build/Posix/Directory.o ) [2 of 6] Compiling Posix.Socket.Types ( dist/build/Posix/Socket/Types.hs, dist/build/Posix/Socket/Types.o ) src/Posix/Socket/Types.hsc:170:15: error: parse error on input ‘{’ | 170 | peek = Flags #{const MSG_PEEK} | ^ cabal: Leaving directory '/tmp/cabal-tmp-30653/posix-api-0.1.0.0' Completed contiguous-0.3.2.0 Completed scientific-0.3.6.2 Completed vector-0.12.0.2 cabal: Error: some packages failed to install: ping-0.1.0.1-AsSO8jp6AbA78ojFAf213Q depends on ping-0.1.0.1 which failed to install. posix-api-0.1.0.0-275krMPZxPr8oUfOjYuh6e failed during the building phase. The exception was: ExitFailure 1