*** setup configure Warning: Omega.cabal: This package requires Cabal version: >=1.2.3 && <1.8 Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.8.0.2 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:144:46: Couldn't match expected type `Distribution.Simple.Program.Db.ProgramDb' against inferred type `VersionRange' In the third argument of `requireProgram', namely `AnyVersion' In a stmt of a 'do' expression: (arPgm, _) <- requireProgram verb arProgram AnyVersion (withPrograms lbi) In the expression: do { useInstalledOmega <- readUseInstalledOmegaFlag; buildHook simpleUserHooks pkgDesc lbi userhooks flags; let verb = fromFlagOrDefault Verbosity.normal $ buildVerbosity flags; (arPgm, _) <- requireProgram verb arProgram AnyVersion (withPrograms lbi); .... } Setup.hs:227:36: Couldn't match expected type `()' against inferred type `Maybe LocalBuildInfo' In the third argument of `cleanHook', namely `mlbi' In the expression: cleanHook simpleUserHooks pkgDesc mlbi userhooks flags In the expression: do { let verb = fromFlagOrDefault Verbosity.normal $ cleanVerbosity flags; case mlbi of { Just lbi -> rawSystemProgramConf verb makeProgram (withPrograms lbi) [...] Nothing -> return () }; unless (fromFlag $ cleanSaveConf flags) $ do { lenientRemoveFiles configFiles; lenientRemoveDirectory "autom4te.cache" }; cleanHook simpleUserHooks pkgDesc mlbi userhooks flags } *** Trying again with preferred-versions *** setup configure Warning: Omega.cabal: This package requires Cabal version: >=1.2.3 && <1.8 Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.8.0.2 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:144:46: Couldn't match expected type `Distribution.Simple.Program.Db.ProgramDb' against inferred type `VersionRange' In the third argument of `requireProgram', namely `AnyVersion' In a stmt of a 'do' expression: (arPgm, _) <- requireProgram verb arProgram AnyVersion (withPrograms lbi) In the expression: do { useInstalledOmega <- readUseInstalledOmegaFlag; buildHook simpleUserHooks pkgDesc lbi userhooks flags; let verb = fromFlagOrDefault Verbosity.normal $ buildVerbosity flags; (arPgm, _) <- requireProgram verb arProgram AnyVersion (withPrograms lbi); .... } Setup.hs:227:36: Couldn't match expected type `()' against inferred type `Maybe LocalBuildInfo' In the third argument of `cleanHook', namely `mlbi' In the expression: cleanHook simpleUserHooks pkgDesc mlbi userhooks flags In the expression: do { let verb = fromFlagOrDefault Verbosity.normal $ cleanVerbosity flags; case mlbi of { Just lbi -> rawSystemProgramConf verb makeProgram (withPrograms lbi) [...] Nothing -> return () }; unless (fromFlag $ cleanSaveConf flags) $ do { lenientRemoveFiles configFiles; lenientRemoveDirectory "autom4te.cache" }; cleanHook simpleUserHooks pkgDesc mlbi userhooks flags }