Resolving dependencies... Configuring primitive-0.6.2.0... Building primitive-0.6.2.0... Installed primitive-0.6.2.0 Configuring vector-0.12.0.1... Building vector-0.12.0.1... Installed vector-0.12.0.1 Configuring gsl-random-0.5.2... Failed to install gsl-random-0.5.2 Build log ( /home/builder/.cabal/logs/gsl-random-0.5.2.log ): cabal: Entering directory '/tmp/cabal-tmp-2059/gsl-random-0.5.2' cabal: Leaving directory '/tmp/cabal-tmp-2059/gsl-random-0.5.2' cabal: Error: some packages failed to install: gsl-random-0.5.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-2059/gsl-random-0.5.2/dist/setup/setup.hs:1:1: error: Failed to load interface for ‘Prelude’ It is a member of the hidden package ‘base-4.9.1.0’. Perhaps you need to add ‘base’ to the build-depends in your .cabal file. Use -v to see a list of the files searched for. /tmp/cabal-tmp-2059/gsl-random-0.5.2/dist/setup/setup.hs:11:3: error: Failed to load interface for ‘Data.List’ It is a member of the hidden package ‘base-4.9.1.0’. Perhaps you need to add ‘base’ to the build-depends in your .cabal file. Use -v to see a list of the files searched for. )