Resolving dependencies... Downloading GenericPretty-0.1.2... Configuring GenericPretty-0.1.2... Building GenericPretty-0.1.2... Preprocessing library GenericPretty-0.1.2... 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:177:38: Couldn't match expected type ‘DynFlags.DynFlags’ with actual type ‘SDoc’ In the first argument of ‘showSDocOneLine’, namely ‘x’ In the expression: showSDocOneLine x Text/PrettyPrint/GenericPretty.hs:178:44: Couldn't match type ‘SDoc’ with ‘DynFlags.DynFlags’ Expected type: [DynFlags.DynFlags] Actual type: [SDoc] In the first argument of ‘head’, namely ‘pfn’ In the first argument of ‘showSDocOneLine’, namely ‘(head pfn)’ Text/PrettyPrint/GenericPretty.hs:179:52: 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’ Text/PrettyPrint/GenericPretty.hs:180:69: 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)’ Text/PrettyPrint/GenericPretty.hs:196:70: 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 Text/PrettyPrint/GenericPretty.hs:198:27: 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) Text/PrettyPrint/GenericPretty.hs:198:35: 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) Failed to install GenericPretty-0.1.2 cabal: Error: some packages failed to install: GenericPretty-0.1.2 failed during the building phase. The exception was: ExitFailure 1