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... Configuring primitive-0.6.1.0... Installed mtl-2.2.1 Configuring random-1.1... Installed ghc-paths-0.1.0.9 Building primitive-0.6.1.0... Building random-1.1... Configuring stm-2.4.4.1... Installed random-1.1 Building stm-2.4.4.1... Configuring text-1.2.2.1... Installed primitive-0.6.1.0 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed stm-2.4.4.1 Building transformers-compat-0.5.1.4... Configuring utf8-string-1.0.1.1... Installed transformers-compat-0.5.1.4 Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Configuring exceptions-0.8.3... Installed text-1.2.2.1 Building exceptions-0.8.3... Installed exceptions-0.8.3 Configuring hashable-1.2.4.0... Building hashable-1.2.4.0... Configuring hint-0.6.0... Installed hashable-1.2.4.0 Building hint-0.6.0... Installed vector-0.11.0.0 Configuring hashtables-1.2.1.0... Installed hint-0.6.0 Configuring gtk2hs-cast-th-0.10.1.0... Building hashtables-1.2.1.0... Building gtk2hs-cast-th-0.10.1.0... Failed to install gtk2hs-cast-th-0.10.1.0 Build log ( /home/builder/.cabal/logs/gtk2hs-cast-th-0.10.1.0.log ): cabal: Entering directory '/tmp/cabal-tmp-21598/gtk2hs-cast-th-0.10.1.0' Configuring gtk2hs-cast-th-0.10.1.0... Building gtk2hs-cast-th-0.10.1.0... Preprocessing library gtk2hs-cast-th-0.10.1.0... [1 of 1] Compiling System.Glib.Cast.TH ( System/Glib/Cast/TH.hs, dist/build/System/Glib/Cast/TH.o ) System/Glib/Cast/TH.hs:30: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_) ...]] System/Glib/Cast/TH.hs:30: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_) ...]] System/Glib/Cast/TH.hs:31: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_) ...]] System/Glib/Cast/TH.hs:32: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-21598/gtk2hs-cast-th-0.10.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 glib-0.13.4.1... Configuring cairo-0.13.3.1... Building cairo-0.13.3.1... Building glib-0.13.4.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 cabal: Error: some packages failed to install: gtk2hs-cast-gtk-0.10.1.2 depends on gtk2hs-cast-th-0.10.1.0 which failed to install. gtk2hs-cast-th-0.10.1.0 failed during the building phase. The exception was: ExitFailure 1