Resolving dependencies... Configuring mtl-2.2.1... Configuring setenv-0.1.1.3... Building setenv-0.1.1.3... Building mtl-2.2.1... Installed setenv-0.1.1.3 Configuring text-1.2.2.1... Building text-1.2.2.1... Installed mtl-2.2.1 Installed text-1.2.2.1 Configuring parsec-3.1.11... Building parsec-3.1.11... Installed parsec-3.1.11 Configuring llvm-general-3.3.0.6... Failed to install llvm-general-3.3.0.6 Build log ( /home/builder/.cabal/logs/llvm-general-3.3.0.6.log ): cabal: Entering directory '/tmp/cabal-tmp-7851/llvm-general-3.3.0.6' cabal: Leaving directory '/tmp/cabal-tmp-7851/llvm-general-3.3.0.6' cabal: Error: some packages failed to install: llvm-general-3.3.0.6 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-7851/llvm-general-3.3.0.6/dist/setup/setup.hs:41:13: error: • Couldn't match expected type ‘ProgramSearchPath -> IO (Maybe (FilePath, [FilePath]))’ with actual type ‘IO (Maybe FilePath)’ • Possible cause: ‘findJustBy’ is applied to too many arguments In the expression: findJustBy (findProgramLocation v) llvmConfigNames In the expression: \ v -> findJustBy (findProgramLocation v) llvmConfigNames In the ‘programFindLocation’ field of a record /tmp/cabal-tmp-7851/llvm-general-3.3.0.6/dist/setup/setup.hs:118:7: error: • Couldn't match expected type ‘TestFlags -> IO ()’ with actual type ‘IO b0’ • In a stmt of a 'do' block: addLLVMToLdLibraryPath (configFlags localBuildInfo) In the expression: do { addLLVMToLdLibraryPath (configFlags localBuildInfo); testHook simpleUserHooks packageDescription localBuildInfo userHooks testFlags } In the ‘testHook’ field of a record /tmp/cabal-tmp-7851/llvm-general-3.3.0.6/dist/setup/setup.hs:118:43: error: • Couldn't match expected type ‘LocalBuildInfo’ with actual type ‘PackageDescription’ • In the first argument of ‘configFlags’, namely ‘localBuildInfo’ In the first argument of ‘addLLVMToLdLibraryPath’, namely ‘(configFlags localBuildInfo)’ In a stmt of a 'do' block: addLLVMToLdLibraryPath (configFlags localBuildInfo) /tmp/cabal-tmp-7851/llvm-general-3.3.0.6/dist/setup/setup.hs:119:7: error: • Couldn't match expected type ‘IO b0’ with actual type ‘TestFlags -> IO ()’ • Probable cause: ‘testHook’ is applied to too few arguments In a stmt of a 'do' block: testHook simpleUserHooks packageDescription localBuildInfo userHooks testFlags In the expression: do { addLLVMToLdLibraryPath (configFlags localBuildInfo); testHook simpleUserHooks packageDescription localBuildInfo userHooks testFlags } In the ‘testHook’ field of a record )