*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Dependency Cabal >=1.2.3: using Cabal-1.7.4 Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.7.4 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:31:37: Couldn't match expected type `Verbosity' against inferred type `[Char]' In the first argument of `findProgramOnPath', namely `"pgconfig"' In a stmt of a 'do' expression: pgconfig <- findProgramOnPath "pgconfig" verbosity In the expression: do pgconfig <- findProgramOnPath "pgconfig" verbosity pg_config <- findProgramOnPath "pg_config" verbosity return (pgconfig `mplus` pg_config) Setup.hs:39:41: 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: (pgconfigProg, _) <- requireProgram verbosity pgconfigProgram AnyVersion (withPrograms lbi) In the expression: do (pgconfigProg, _) <- requireProgram verbosity pgconfigProgram AnyVersion (withPrograms lbi) let pgconfig = rawSystemProgramStdout verbosity pgconfigProg incDir <- pgconfig ["--includedir"] libDir <- pgconfig ["--libdir"] .... *** Trying again with preferred-versions *** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Dependency Cabal >=1.2.3: using Cabal-1.7.4 Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.7.4 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:31:37: Couldn't match expected type `Verbosity' against inferred type `[Char]' In the first argument of `findProgramOnPath', namely `"pgconfig"' In a stmt of a 'do' expression: pgconfig <- findProgramOnPath "pgconfig" verbosity In the expression: do pgconfig <- findProgramOnPath "pgconfig" verbosity pg_config <- findProgramOnPath "pg_config" verbosity return (pgconfig `mplus` pg_config) Setup.hs:39:41: 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: (pgconfigProg, _) <- requireProgram verbosity pgconfigProgram AnyVersion (withPrograms lbi) In the expression: do (pgconfigProg, _) <- requireProgram verbosity pgconfigProgram AnyVersion (withPrograms lbi) let pgconfig = rawSystemProgramStdout verbosity pgconfigProg incDir <- pgconfig ["--includedir"] libDir <- pgconfig ["--libdir"] ....