Resolving dependencies... Configuring mtl-2.2.1... Configuring network-2.6.3.1... Building mtl-2.2.1... Building network-2.6.3.1... Configuring text-1.2.2.1... Installed mtl-2.2.1 Building text-1.2.2.1... Installed network-2.6.3.1 Configuring regex-base-0.93.2... Building regex-base-0.93.2... Installed regex-base-0.93.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Installed regex-posix-0.95.2 Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Installed text-1.2.2.1 Configuring parsec-3.1.11... Installed regex-compat-0.95.1 Building parsec-3.1.11... Installed parsec-3.1.11 Configuring network-uri-2.6.1.0... Building network-uri-2.6.1.0... Installed network-uri-2.6.1.0 Configuring HTTP-4000.3.3... Building HTTP-4000.3.3... Installed HTTP-4000.3.3 Configuring HXQ-0.20.0... Building HXQ-0.20.0... Failed to install HXQ-0.20.0 Build log ( /home/builder/.cabal/logs/HXQ-0.20.0.log ): cabal: Entering directory '/tmp/cabal-tmp-23485/HXQ-0.20.0' Configuring HXQ-0.20.0... Building HXQ-0.20.0... Preprocessing library HXQ-0.20.0... [ 1 of 23] Compiling Tree ( src/hxml-0.2/Tree.hs, dist/build/Tree.o ) src/hxml-0.2/Tree.hs:21:1: warning: [-Wtabs] Tab character found here, and in 12 further locations. Please use spaces instead. [ 2 of 23] Compiling XML ( src/hxml-0.2/XML.hs, dist/build/XML.o ) src/hxml-0.2/XML.hs:31:11: warning: [-Wtabs] Tab character found here, and in 96 further locations. Please use spaces instead. [ 3 of 23] Compiling Text.XML.HXQ.Parser ( src/Text/XML/HXQ/Parser.hs, dist/build/Text/XML/HXQ/Parser.o ) src/Text/XML/HXQ/Parser.hs:2293:10: error: • No instance for (Applicative HappyIdentity) arising from the superclasses of an instance declaration • In the instance declaration for ‘Monad HappyIdentity’ templates/GenericTemplate.hs:104:22: error: • Couldn't match expected type ‘Bool’ with actual type ‘Happy_GHC_Exts.Int#’ • In the expression: (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#)) In a stmt of a pattern guard for a case alternative: (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#)) In a case alternative: n | (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#)) -> (happyReduceArr Happy_Data_Array.! rule) i tk st where rule = (Happy_GHC_Exts.I# ((Happy_GHC_Exts.negateInt# ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#)))))) templates/GenericTemplate.hs:115:23: error: • Couldn't match expected type ‘Bool’ with actual type ‘Happy_GHC_Exts.Int#’ • In the expression: (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) In the expression: if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i) else False In an equation for ‘check’: check = if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i) else False templates/GenericTemplate.hs:117:30: error: • Couldn't match expected type ‘Happy_GHC_Exts.Int#’ with actual type ‘Bool’ • In the expression: False In the expression: if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i) else False In an equation for ‘check’: check = if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i) else False templates/GenericTemplate.hs:119:13: error: • Couldn't match expected type ‘Bool’ with actual type ‘Happy_GHC_Exts.Int#’ • In the expression: check In a stmt of a pattern guard for a pattern binding: check In a pattern binding: (action) | check = indexShortOffAddr happyTable off_i | otherwise = indexShortOffAddr happyDefActions st templates/GenericTemplate.hs:212:14: error: • Pattern bindings containing unlifted types should use an outermost bang pattern: (sts1@((HappyCons (st1@(action)) (_)))) = happyDrop k (HappyCons (st) (sts)) • In an equation for ‘happyMonadReduce’: happyMonadReduce k nt fn j tk st sts stk = happyThen1 (fn stk tk) (\ r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk)) where (sts1@((HappyCons (st1@(action)) (_)))) = happyDrop k (HappyCons (st) (sts)) drop_stk = happyDropStk k stk templates/GenericTemplate.hs:219:14: error: • Pattern bindings containing unlifted types should use an outermost bang pattern: (sts1@((HappyCons (st1@(action)) (_)))) = happyDrop k (HappyCons (st) (sts)) • In an equation for ‘happyMonad2Reduce’: happyMonad2Reduce k nt fn j tk st sts stk = happyThen1 (fn stk tk) (\ r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk)) where (sts1@((HappyCons (st1@(action)) (_)))) = happyDrop k (HappyCons (st) (sts)) drop_stk = happyDropStk k stk (off) = indexShortOffAddr happyGotoOffsets st1 (off_i) = (off Happy_GHC_Exts.+# nt) .... cabal: Leaving directory '/tmp/cabal-tmp-23485/HXQ-0.20.0' cabal: Error: some packages failed to install: HXQ-0.20.0 failed during the building phase. The exception was: ExitFailure 1