Resolving dependencies... Configuring ghc-paths-0.1.0.9... Configuring mtl-2.2.1... Building mtl-2.2.1... Building ghc-paths-0.1.0.9... Installed mtl-2.2.1 Configuring primitive-0.6.1.0... Configuring stm-2.4.4.1... Installed ghc-paths-0.1.0.9 Building primitive-0.6.1.0... Building stm-2.4.4.1... Configuring random-1.1... Installed stm-2.4.4.1 Building random-1.1... Configuring transformers-compat-0.5.1.4... Installed primitive-0.6.1.0 Building transformers-compat-0.5.1.4... Configuring text-1.2.2.1... Installed transformers-compat-0.5.1.4 Configuring utf8-string-1.0.1.1... Installed random-1.1 Building text-1.2.2.1... Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring exceptions-0.8.3... Building exceptions-0.8.3... Configuring vector-0.11.0.0... Installed exceptions-0.8.3 Building vector-0.11.0.0... Configuring hint-0.6.0... Installed text-1.2.2.1 Building hint-0.6.0... Configuring hashable-1.2.4.0... Installed hint-0.6.0 Building hashable-1.2.4.0... Installed hashable-1.2.4.0 Installed vector-0.11.0.0 Configuring hashtables-1.2.1.0... Building hashtables-1.2.1.0... Installed hashtables-1.2.1.0 Configuring gtk2hs-buildtools-0.13.2.1... Building gtk2hs-buildtools-0.13.2.1... Installed gtk2hs-buildtools-0.13.2.1 Configuring cairo-0.13.3.1... Configuring glib-0.13.4.1... Building glib-0.13.4.1... Building cairo-0.13.3.1... Installed cairo-0.13.3.1 Installed glib-0.13.4.1 Configuring gtk2hs-cast-glib-0.10.1.1... Configuring pango-0.13.3.1... Building gtk2hs-cast-glib-0.10.1.1... Configuring gio-0.13.3.1... Installed gtk2hs-cast-glib-0.10.1.1 Building pango-0.13.3.1... Building gio-0.13.3.1... Installed pango-0.13.3.1 Installed gio-0.13.3.1 Configuring gtk-0.14.6... Building gtk-0.14.6... Installed gtk-0.14.6 Configuring gtkglext-0.13.1.1... Building gtkglext-0.13.1.1... Installed gtkglext-0.13.1.1 Configuring gtk2hs-cast-gtkglext-0.10.1.1... Building gtk2hs-cast-gtkglext-0.10.1.1... Failed to install gtk2hs-cast-gtkglext-0.10.1.1 Build log ( /home/builder/.cabal/logs/gtk2hs-cast-gtkglext-0.10.1.1.log ): cabal: Entering directory '/tmp/cabal-tmp-3288/gtk2hs-cast-gtkglext-0.10.1.1' Configuring gtk2hs-cast-gtkglext-0.10.1.1... Building gtk2hs-cast-gtkglext-0.10.1.1... Preprocessing library gtk2hs-cast-gtkglext-0.10.1.1... [1 of 2] Compiling Graphics.UI.Gtk.OpenGL.Cast.TH ( Graphics/UI/Gtk/OpenGL/Cast/TH.hs, dist/build/Graphics/UI/Gtk/OpenGL/Cast/TH.o ) Graphics/UI/Gtk/OpenGL/Cast/TH.hs:31:5: error: • Couldn't match expected type ‘Dec’ with actual type ‘[Dec] -> Dec’ • Probable cause: ‘InstanceD’ is applied to too few arguments In the expression: InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause [] (NormalB $ VarE $ mkName $ "castTo" ++ type_) []]] In an equation for ‘makeInstance_’: makeInstance_ type_ = InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause ... (NormalB $ VarE $ mkName $ "castTo" ++ type_) ...]] Graphics/UI/Gtk/OpenGL/Cast/TH.hs:31:15: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[t0]’ • In the first argument of ‘InstanceD’, namely ‘[]’ In the expression: InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause [] (NormalB $ VarE $ mkName $ "castTo" ++ type_) []]] In an equation for ‘makeInstance_’: makeInstance_ type_ = InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause ... (NormalB $ VarE $ mkName $ "castTo" ++ type_) ...]] Graphics/UI/Gtk/OpenGL/Cast/TH.hs:32:4: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(AppT (ConT $ mkName "Cast") $ ConT $ mkName type_)’ In the expression: InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause [] (NormalB $ VarE $ mkName $ "castTo" ++ type_) []]] In an equation for ‘makeInstance_’: makeInstance_ type_ = InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause ... (NormalB $ VarE $ mkName $ "castTo" ++ type_) ...]] Graphics/UI/Gtk/OpenGL/Cast/TH.hs:33:3: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘[FunD (mkName "cast") [Clause [] (NormalB $ VarE $ mkName $ "castTo" ++ type_) []]]’ In the expression: InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause [] (NormalB $ VarE $ mkName $ "castTo" ++ type_) []]] In an equation for ‘makeInstance_’: makeInstance_ type_ = InstanceD [] (AppT (ConT $ mkName "Cast") $ ConT $ mkName type_) [FunD (mkName "cast") [Clause ... (NormalB $ VarE $ mkName $ "castTo" ++ type_) ...]] cabal: Leaving directory '/tmp/cabal-tmp-3288/gtk2hs-cast-gtkglext-0.10.1.1' cabal: Error: some packages failed to install: gtk2hs-cast-gtkglext-0.10.1.1 failed during the building phase. The exception was: ExitFailure 1