Menu

#7 HSQL.PostgreSQL's Setup.lhs doesn't compile

open
nobody
None
5
2007-02-08
2007-02-08
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.