*** setup configure Creating dist/setup (and its parents) /usr/local/bin/ghc --make Setup.hs -o dist/setup/setup -odir dist/setup -hidir dist/setup [1 of 1] Compiling Main ( Setup.hs, dist/setup/Main.o ) Setup.hs:11:44: Couldn't match expected type `(Either GenericPackageDescription PackageDescription, HookedBuildInfo)' against inferred type `PackageDescription' Expected type: (Either GenericPackageDescription PackageDescription, HookedBuildInfo) -> Distribution.Simple.Setup.ConfigFlags -> IO LocalBuildInfo Inferred type: PackageDescription -> Distribution.Simple.Setup.ConfigFlags -> IO LocalBuildInfo In the `confHook' field of a record In the expression: defaultUserHooks {confHook = customConfHook} Setup.hs:17:52: Couldn't match expected type `PackageName' against inferred type `[Char]' In the first argument of `Dependency', namely `"unix"' In the first argument of `(:)', namely `(Dependency "unix" AnyVersion)' In the `buildDepends' field of a record