Resolving dependencies... Configuring GenericPretty-0.1.1... Building GenericPretty-0.1.1... Failed to install GenericPretty-0.1.1 Build log ( /home/builder/.cabal/logs/GenericPretty-0.1.1.log ): cabal: Entering directory '/tmp/cabal-tmp-28607/GenericPretty-0.1.1' Configuring GenericPretty-0.1.1... Building GenericPretty-0.1.1... Preprocessing library GenericPretty-0.1.1... Text/PrettyPrint/GenericPretty.hs:2:9: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS [1 of 1] Compiling Text.PrettyPrint.GenericPretty ( Text/PrettyPrint/GenericPretty.hs, dist/build/Text/PrettyPrint/GenericPretty.o ) Text/PrettyPrint/GenericPretty.hs:175:38: error: • Couldn't match expected type ‘DynFlags.DynFlags’ with actual type ‘SDoc’ • In the first argument of ‘showSDocOneLine’, namely ‘x’ In the expression: showSDocOneLine x In an equation for ‘strG’: strG = showSDocOneLine x Text/PrettyPrint/GenericPretty.hs:176:39: error: • Couldn't match expected type ‘DynFlags.DynFlags’ with actual type ‘SDoc’ • In the first argument of ‘showSDocOneLine’, namely ‘(head pfn)’ In the expression: showSDocOneLine (head pfn) In an equation for ‘strF’: strF = showSDocOneLine (head pfn) Text/PrettyPrint/GenericPretty.hs:177:52: error: • Couldn't match expected type ‘[Char]’ with actual type ‘SDoc -> String’ • Probable cause: ‘strG’ is applied to too few arguments In the second argument of ‘takeWhile’, namely ‘strG’ In the second argument of ‘($)’, namely ‘takeWhile (== '(') strG’ In the expression: length $ takeWhile (== '(') strG Text/PrettyPrint/GenericPretty.hs:178:69: error: • Couldn't match expected type ‘[Char]’ with actual type ‘SDoc -> String’ • Probable cause: ‘strF’ is applied to too few arguments In the second argument of ‘dropWhile’, namely ‘strF’ In the second argument of ‘takeWhile’, namely ‘(dropWhile (== '(') strF)’ In the second argument of ‘($)’, namely ‘takeWhile (/= ' ') (dropWhile (== '(') strF)’ Text/PrettyPrint/GenericPretty.hs:194:70: error: • Couldn't match expected type ‘Doc’ with actual type ‘SDoc -> Doc’ • Probable cause: ‘doc’ is applied to too few arguments In the sixth argument of ‘fullRender’, namely ‘doc’ In the expression: fullRender mode len rib td end doc In an equation for ‘fullPP’: fullPP a pstyle mode len rib td end = fullRender mode len rib td end doc where doc = withPprStyleDoc pstyle (out 0 a) Text/PrettyPrint/GenericPretty.hs:196:27: error: • Couldn't match expected type ‘DynFlags.DynFlags’ with actual type ‘PprStyle’ • In the first argument of ‘withPprStyleDoc’, namely ‘pstyle’ In the expression: withPprStyleDoc pstyle (out 0 a) In an equation for ‘doc’: doc = withPprStyleDoc pstyle (out 0 a) Text/PrettyPrint/GenericPretty.hs:196:35: error: • Couldn't match expected type ‘PprStyle’ with actual type ‘SDoc’ • In the second argument of ‘withPprStyleDoc’, namely ‘(out 0 a)’ In the expression: withPprStyleDoc pstyle (out 0 a) In an equation for ‘doc’: doc = withPprStyleDoc pstyle (out 0 a) cabal: Leaving directory '/tmp/cabal-tmp-28607/GenericPretty-0.1.1' cabal: Error: some packages failed to install: GenericPretty-0.1.1 failed during the building phase. The exception was: ExitFailure 1