Resolving dependencies... Downloading GenericPretty-0.1.1... Configuring GenericPretty-0.1.1... Building GenericPretty-0.1.1... Preprocessing library GenericPretty-0.1.1... [1 of 1] Compiling Text.PrettyPrint.GenericPretty ( Text/PrettyPrint/GenericPretty.hs, dist/build/Text/PrettyPrint/GenericPretty.o ) Text/PrettyPrint/GenericPretty.hs:175: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 In an equation for `strG': strG = showSDocOneLine x Text/PrettyPrint/GenericPretty.hs:176: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)' In the expression: showSDocOneLine (head pfn) Text/PrettyPrint/GenericPretty.hs:196: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) In an equation for `doc': doc = withPprStyleDoc pstyle (out 0 a) Text/PrettyPrint/GenericPretty.hs:196:35: Couldn't match expected type `PprStyle' with actual type `SDoc' In the return type of a call of `out' In the second argument of `withPprStyleDoc', namely `(out 0 a)' In the expression: withPprStyleDoc pstyle (out 0 a) Failed to install 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