Resolving dependencies... Configuring old-locale-1.0.0.7... Configuring mtl-2.2.1... Building old-locale-1.0.0.7... Building mtl-2.2.1... Installed old-locale-1.0.0.7 Configuring text-1.2.2.1... Building text-1.2.2.1... Configuring old-time-1.1.0.3... Installed mtl-2.2.1 Building old-time-1.1.0.3... Configuring utf8-string-1.0.1.1... Installed old-time-1.1.0.3 Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Installed text-1.2.2.1 Configuring convertible-1.1.1.0... Configuring parsec-3.1.11... Building convertible-1.1.1.0... Building parsec-3.1.11... 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 Configuring HDBC-odbc-1.1.3.0... Failed to install HDBC-odbc-1.1.3.0 Build log ( /home/builder/.cabal/logs/HDBC-odbc-1.1.3.0.log ): cabal: Entering directory '/tmp/cabal-tmp-11767/HDBC-odbc-1.1.3.0' cabal: Leaving directory '/tmp/cabal-tmp-11767/HDBC-odbc-1.1.3.0' cabal: Error: some packages failed to install: HDBC-odbc-1.1.3.0 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-11767/HDBC-odbc-1.1.3.0/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-11767/HDBC-odbc-1.1.3.0/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) )