Resolving dependencies... Configuring old-locale-1.0.0.7... Configuring mtl-2.2.1... Building mtl-2.2.1... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring text-1.2.2.1... Building text-1.2.2.1... Configuring utf8-string-1.0.1.1... Installed mtl-2.2.1 Building utf8-string-1.0.1.1... Configuring old-time-1.1.0.3... Installed utf8-string-1.0.1.1 Building old-time-1.1.0.3... Installed old-time-1.1.0.3 Installed text-1.2.2.1 Configuring parsec-3.1.11... Configuring convertible-1.1.1.0... Building parsec-3.1.11... Building convertible-1.1.1.0... Installed parsec-3.1.11 Installed convertible-1.1.1.0 Configuring HDBC-2.4.0.1... Building HDBC-2.4.0.1... Installed HDBC-2.4.0.1 Downloading HDBC-odbc-1.1.3.1... Configuring HDBC-odbc-1.1.3.1... Failed to install HDBC-odbc-1.1.3.1 Build log ( /home/builder/.cabal/logs/HDBC-odbc-1.1.3.1.log ): cabal: Entering directory '/tmp/cabal-tmp-3724/HDBC-odbc-1.1.3.1' cabal: Leaving directory '/tmp/cabal-tmp-3724/HDBC-odbc-1.1.3.1' cabal: Error: some packages failed to install: HDBC-odbc-1.1.3.1 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-3724/HDBC-odbc-1.1.3.1/dist/setup/setup.hs:8:73: error: • Couldn't match type ‘ExitCode’ with ‘()’ Expected type: Args -> Distribution.Simple.Setup.ConfigFlags -> PackageDescription -> Distribution.Simple.LocalBuildInfo.LocalBuildInfo -> IO () Actual type: Args -> Distribution.Simple.Setup.ConfigFlags -> PackageDescription -> Distribution.Simple.LocalBuildInfo.LocalBuildInfo -> IO ExitCode • In the ‘postConf’ field of a record In the first argument of ‘defaultMainWithHooks’, namely ‘defaultUserHooks {preConf = conf, postConf = ok}’ In the expression: defaultMainWithHooks (defaultUserHooks {preConf = conf, postConf = ok}) /tmp/cabal-tmp-3724/HDBC-odbc-1.1.3.1/dist/setup/setup.hs:17:8: error: • Variable not in scope: writeHookedBuildInfo :: [Char] -> (Maybe BuildInfo, [t0]) -> IO a0 • Perhaps you meant ‘emptyHookedBuildInfo’ (imported from Distribution.PackageDescription) )