From: Brian Bloniarz <email@example.com> Subject: Patch for HDBC under GHC 6.10 Date: 12/26/08 13:59 Hi John, I have a patch submission for: http://software.complete.org/software/issues/show/112 The patches do 2 things: 1) adds a cabal version constraint to use base < 4. This'll make it compile cleanly for the time being, until HDBC can be ported over to the new Exception framework. 2) Works around the Cabal 1.6 breakage mentioned in the bug (writeHookedBuildInfo). This was slightly harder to do in a backwards-compatible way. The way that I came up with was to use Cabal's autoconf support (which is stable), rather than writeHookedBuildInfo stuff which is in the unstable API, I think. There's more discussion here: http://www.haskell.org/pipermail/glasgow-haskell-users/2008-October/015707.html http://www.haskell.org/cabal/release/latest/doc/users-guide/stability.html Attached are git patches for hdbc, hdbc-odbc, hdbc-postgresql, and hdbc-sqlite3. I've tested them on GHC 6.8/Cabal 1.2, as well as GHC 6.10/Cabal 1.6. Please let me know if you have any questions. Thanks, Brian Bloniarz
The base package split-up requires explicit dependencies on modules, such as bytestring and old-time. This patch should keep HDBC compatible with both previous and current versions of GHC.