*** setup configure Creating setup (and its parents) /usr/local/bin/ghc --make Setup.lhs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.lhs, setup/Main.o ) Setup.lhs:17:41: Couldn't match expected type `(Either Distribution.PackageDescription.GenericPackageDescription PackageDescription, Distribution.PackageDescription.HookedBuildInfo)' against inferred type `PackageDescription' In the second argument of `(.)', namely `addOptionalUnixDependency' In the `confHook' field of a record In the expression: hooks {confHook = confHook hooks . addOptionalUnixDependency} 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 *** Trying again with preferred-versions *** setup configure Creating setup (and its parents) /usr/local/bin/ghc --make Setup.lhs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.lhs, setup/Main.o ) Setup.lhs:17:41: Couldn't match expected type `(Either Distribution.PackageDescription.GenericPackageDescription PackageDescription, Distribution.PackageDescription.HookedBuildInfo)' against inferred type `PackageDescription' In the second argument of `(.)', namely `addOptionalUnixDependency' In the `confHook' field of a record In the expression: hooks {confHook = confHook hooks . addOptionalUnixDependency} 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