Resolving dependencies... Downloading glib-0.11.2... /tmp/glib-0.11.2-7294/glib-0.11.2/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 ( /tmp/glib-0.11.2-7294/glib-0.11.2/Gtk2HsSetup.hs, /tmp/glib-0.11.2-7294/glib-0.11.2/dist/setup/Gtk2HsSetup.o ) /tmp/glib-0.11.2-7294/glib-0.11.2/Gtk2HsSetup.hs:190:70: Couldn't match type `PackageDB' with `[PackageDB]' Expected type: PackageDBStack 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 Failed to install glib-0.11.2 Configuring mtl-1.1.1.1... Building mtl-1.1.1.1... Preprocessing library mtl-1.1.1.1... [ 1 of 21] Compiling Control.Monad.Identity ( Control/Monad/Identity.hs, dist/build/Control/Monad/Identity.o ) [ 2 of 21] Compiling Control.Monad.Writer.Class ( Control/Monad/Writer/Class.hs, dist/build/Control/Monad/Writer/Class.o ) [ 3 of 21] Compiling Control.Monad.Error.Class ( Control/Monad/Error/Class.hs, dist/build/Control/Monad/Error/Class.o ) [ 4 of 21] Compiling Control.Monad.State.Class ( Control/Monad/State/Class.hs, dist/build/Control/Monad/State/Class.o ) [ 5 of 21] Compiling Control.Monad.Reader.Class ( Control/Monad/Reader/Class.hs, dist/build/Control/Monad/Reader/Class.o ) [ 6 of 21] Compiling Control.Monad.RWS.Class ( Control/Monad/RWS/Class.hs, dist/build/Control/Monad/RWS/Class.o ) [ 7 of 21] Compiling Control.Monad.Trans ( Control/Monad/Trans.hs, dist/build/Control/Monad/Trans.o ) [ 8 of 21] Compiling Control.Monad.Cont.Class ( Control/Monad/Cont/Class.hs, dist/build/Control/Monad/Cont/Class.o ) [ 9 of 21] Compiling Control.Monad.Reader ( Control/Monad/Reader.hs, dist/build/Control/Monad/Reader.o ) [10 of 21] Compiling Control.Monad.Error ( Control/Monad/Error.hs, dist/build/Control/Monad/Error.o ) Control/Monad/Error.hs:73:21: Not in scope: `catch' Control/Monad/Error.hs:77:18: Not in scope: `catch' Failed to install mtl-1.1.1.1 cabal: Error: some packages failed to install: cairo-0.11.1 depends on mtl-1.1.1.1 which failed to install. gio-0.11.1 depends on mtl-1.1.1.1 which failed to install. glib-0.11.2 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.2 depends on mtl-1.1.1.1 which failed to install. gtk2hs-rpn-0.2.1 depends on mtl-1.1.1.1 which failed to install. mtl-1.1.1.1 failed during the building phase. The exception was: ExitFailure 1 pango-0.11.2 depends on mtl-1.1.1.1 which failed to install.