*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global -v0 /usr/local/bin/ghc-pkg dump --user -v0 /usr/local/bin/ghc --print-libdir creating dist/setup creating dist creating dist/setup /usr/local/bin/ghc -package Cabal-1.12.0 --make Setup.hs -o dist/setup/setup -odir dist/setup -hidir dist/setup Gtk2HsSetup.hs:25:2: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [-Wcpp] [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup/Gtk2HsSetup.o ) Gtk2HsSetup.hs:190:70: Couldn't match expected type `PackageDBStack' with actual type `PackageDB' In the sixth argument of `registerPackage', namely `packageDb' In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb In a case alternative: _ | modeGenerateRegFile -> die "Generate Reg File not supported" | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb