*** setup configure Creating dist/setup (and its parents) /usr/local/bin/ghc --make Setup.lhs -o dist/setup/setup -odir dist/setup -hidir dist/setup [1 of 1] Compiling Main ( Setup.lhs, dist/setup/Main.o ) Setup.lhs:17:41: Couldn't match expected type `(Either Distribution.PackageDescription.GenericPackageDescription PackageDescription, Distribution.PackageDescription.HookedBuildInfo)' against inferred type `PackageDescription' Expected type: (Either Distribution.PackageDescription.GenericPackageDescription PackageDescription, Distribution.PackageDescription.HookedBuildInfo) -> (Either Distribution.PackageDescription.GenericPackageDescription PackageDescription, Distribution.PackageDescription.HookedBuildInfo) Inferred type: PackageDescription -> PackageDescription In the second argument of `(.)', namely `addOptionalUnixDependency' In the `confHook' field of a record Setup.lhs:23:46: Couldn't match expected type `Distribution.Package.PackageName' against inferred type `[Char]' In the first argument of `Dependency', namely `"unix"' In the first argument of `addDependency', namely `(Dependency "unix" AnyVersion)' In the expression: addDependency (Dependency "unix" AnyVersion) desc