Resolving dependencies... Configuring mtl-2.2.1... cabal: '/opt/ghc/7.10.2/bin/ghc-pkg' exited with an error: ghc-pkg: /home/builder/hackage-server/build-cache/tmp-install/packages.db: getDirectoryContents: does not exist (No such file or directory) Failed to install mtl-2.2.1 cabal: Error: some packages failed to install: BNFC-2.8 depends on mtl-2.2.1 which failed to install. cubical-0.2.0 depends on mtl-2.2.1 which failed to install. mtl-2.2.1 failed during the configure step. The exception was: ExitFailure 1