*** 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:101:47: Constructor `InstallFlags' should have 4 arguments, but has been given 2 In the pattern: InstallFlags uInstFlag verbosity In the definition of `defaultInstallHook': defaultInstallHook pkg_descr localbuildinfo _ (InstallFlags uInstFlag verbosity) = do install pkg_descr localbuildinfo (CopyFlags NoCopyDest verbosity) when (hasLibs pkg_descr) $ register pkg_descr localbuildinfo (emptyRegisterFlags {regPackageDB = uInstFlag, regVerbose = verbosity}) Setup.hs:112:27: Couldn't match expected type `FilePath' against inferred type `PackageDescription' In the first argument of `writeInstalledConfig', namely `pkg_descr' In the second argument of `($)', namely `writeInstalledConfig pkg_descr localbuildinfo False Nothing' In the expression: when (hasLibs pkg_descr) $ writeInstalledConfig pkg_descr localbuildinfo False Nothing