Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Configuring regex-base-0.93.2... Building regex-base-0.93.2... Installed regex-base-0.93.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Installed regex-posix-0.95.2 Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Installed regex-compat-0.95.1 Downloading lhs2tex-1.18.1... Configuring lhs2tex-1.18.1... Failed to install lhs2tex-1.18.1 Build log ( /home/builder/.cabal/logs/lhs2tex-1.18.1.log ): cabal: Entering directory '/tmp/cabal-tmp-16883/lhs2tex-1.18.1' cabal: Leaving directory '/tmp/cabal-tmp-16883/lhs2tex-1.18.1' cabal: Error: some packages failed to install: lhs2tex-1.18.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-16883/lhs2tex-1.18.1/dist/setup/setup.hs:298:26: error: Ambiguous occurrence ‘die’ It could refer to either ‘Distribution.Simple.Utils.die’, imported from ‘Distribution.Simple.Utils’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:16:1-32 or ‘System.Exit.die’, imported from ‘System.Exit’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:26:1-18 /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:334:17: error: Ambiguous occurrence ‘die’ It could refer to either ‘Distribution.Simple.Utils.die’, imported from ‘Distribution.Simple.Utils’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:16:1-32 or ‘System.Exit.die’, imported from ‘System.Exit’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:26:1-18 /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:338:17: error: Ambiguous occurrence ‘die’ It could refer to either ‘Distribution.Simple.Utils.die’, imported from ‘Distribution.Simple.Utils’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:16:1-32 or ‘System.Exit.die’, imported from ‘System.Exit’ at /tmp/cabal-tmp-16883/lhs2tex-1.18.1/dist/setup/setup.hs:26:1-18 )