From: Bjorn B. <bri...@cs...> - 2005-06-02 12:20:56
|
Robert van Herk wrote: > I think that Setup.hs in the repos together with the cabal file could b= e=20 > used to compile with GHC 6.4 and PostgreSQL support. >=20 > However, I would like to compile with GHC 6.4, HSQL, and MySQL (and NO=20 > PostgreSQL). >=20 > When I try runhaskell Setup.hs build, I get: >=20 > $ runhaskell Setup.hs build > Preprocessing library haskelldb-0.9... > can't find source for Database.HaskellDB.HSQL.PostgreSQL in ["build/ghc= "] >=20 > In the output of "runhaskell Setup.hs configure", I don't see anything=20 > trying to look for availability of PostgreSQL either. Is there an easy=20 > solution to this? Short answer: no, there is no easy answer. As far as I know anyway. Does anyone have an idea about how we should handle HSQL providing only=20 some backends, and how we should handle conditionally compiling only=20 some backends? This is now done with configure, but using plain Cabal=20 would be nice. Maybe we could always provide all backends, but use CPP to make the=20 unavailable ones dummies that fail at runtime? /Bj=F6rn |