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 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 convertible-1.1.1.0... Building convertible-1.1.1.0... 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-mysql-0.6.6.2... Failed to install HDBC-mysql-0.6.6.2 Build log ( /home/builder/.cabal/logs/HDBC-mysql-0.6.6.2.log ): cabal: Entering directory '/tmp/cabal-tmp-25814/HDBC-mysql-0.6.6.2' cabal: Leaving directory '/tmp/cabal-tmp-25814/HDBC-mysql-0.6.6.2' cabal: Error: some packages failed to install: HDBC-mysql-0.6.6.2 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-25814/HDBC-mysql-0.6.6.2/dist/setup/setup.hs:35:7: error: • Couldn't match type ‘[Char]’ with ‘(FilePath, [FilePath])’ Expected type: IO (Maybe (FilePath, [FilePath])) Actual type: IO (Maybe FilePath) • In a stmt of a 'do' block: return (mysql_config `mplus` mysql_config5) In the expression: do { mysql_config <- findProgramLocation verbosity "mysql_config"; mysql_config5 <- findProgramLocation verbosity "mysql_config5"; return (mysql_config `mplus` mysql_config5) } In the ‘programFindLocation’ field of a record )