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 StateVar-1.1.1.1 Starting base-orphans-0.8 Building base-orphans-0.8 Building StateVar-1.1.1.1 Completed base-orphans-0.8 Starting cabal-doctest-1.0.6 Completed StateVar-1.1.1.1 Starting managed-1.0.6 Building cabal-doctest-1.0.6 Building managed-1.0.6 Completed managed-1.0.6 Starting semigroups-0.18.5 Completed cabal-doctest-1.0.6 Starting tagged-0.8.6 Building semigroups-0.18.5 Building tagged-0.8.6 Completed semigroups-0.18.5 Starting th-abstraction-0.2.8.0 Building th-abstraction-0.2.8.0 Completed tagged-0.8.6 Starting transformers-compat-0.6.2 Building transformers-compat-0.6.2 Completed th-abstraction-0.2.8.0 Starting contravariant-1.5 Building contravariant-1.5 Completed transformers-compat-0.6.2 Starting distributive-0.6 Completed contravariant-1.5 Building distributive-0.6 Completed distributive-0.6 Starting comonad-5.0.4 Building comonad-5.0.4 Completed comonad-5.0.4 Starting bifunctors-5.5.3 Building bifunctors-5.5.3 Completed bifunctors-5.5.3 Starting profunctors-5.3 Building profunctors-5.3 Completed profunctors-5.3 Starting macos-corelibs-0.0.1.0 Building macos-corelibs-0.0.1.0 Failed to install macos-corelibs-0.0.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/macos-corelibs-0.0.1.0-533HTJAhz0U5znmrI9hiRK.log ): cabal: Entering directory '/tmp/cabal-tmp-17647/macos-corelibs-0.0.1.0' Configuring macos-corelibs-0.0.1.0... Preprocessing library for macos-corelibs-0.0.1.0.. Error.hsc:12:27: fatal error: Carbon/Carbon.h: No such file or directory compilation terminated. compiling dist/build/MacSdk/Framework/Accessibility/Error_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/MacSdk/Framework/Accessibility/Error_hsc_make.c -o dist/build/MacSdk/Framework/Accessibility/Error_hsc_make.o -std=gnu99 -fno-stack-protector -std=gnu99 -fno-stack-protector -fuse-ld=gold -D__GLASGOW_HASKELL__=806 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -Idist/build/cbits -Wno-deprecated -Wno-int-to-void-pointer-cast -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.6.1/lib/ghc-8.6.1/base-4.12.0.0/include -I/opt/ghc/8.6.1/lib/ghc-8.6.1/integer-gmp-1.0.2.0/include -I/opt/ghc/8.6.1/lib/ghc-8.6.1/include -I/usr/local/haskell/ghc-8.2.2-x86_64/lib/ghc-8.2.2/include/ cabal: Leaving directory '/tmp/cabal-tmp-17647/macos-corelibs-0.0.1.0' cabal: Error: some packages failed to install: macos-corelibs-0.0.1.0-533HTJAhz0U5znmrI9hiRK failed during the building phase. The exception was: ExitFailure 1