Maybe the Cabal libraries have been updated and broken this script. In any case I get the following, using HSQL 1.7 with GHC 6.4.1 on OSX 10.4.8:
~/src/HSQL/PostgreSQL george$ runghc Setup.lhs configure
Setup.lhs:17:71:
Couldn't match `PackageDescription' against `LocalBuildInfo'
Expected type: Args -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
Inferred type: [String]
-> ConfigFlags
-> PackageDescription
-> LocalBuildInfo
-> IO ExitCode
In the `postConf' field of a record
In the record update: defaultUserHooks {preConf = preConf, postConf = postConf}
The following patch fixes the problem:
24,25c24,25
< postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
< postConf args flags _ localbuildinfo = do
---
> postConf :: [String] -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
> postConf args flags localbuildinfo = do