From: Krasimir A. <ka2...@ya...> - 2005-06-03 18:36:13
|
Hello, Guys The Cabal support in HSQL is still half-baked. I was a little bit off in the last few months but now I will have more free time and I will complete the next HSQL release. I am sorry for this inconvenience but after all I am working on HSQL only in my free time. I also thought how to separate the different backends in HSQL. The new Cabalized version will have multiple packages. One common and one for each backend. These will be really small - usually only one module. The advantage is that you will be able to have multiple backends installed but your program will be linked only with the backend which you like. I saw that under Linux if you have multiple backends installed but you are using only one of them then the program will be linked to all backends. This isn't the case with Windows. Under Windows the linker will choice the right backend automatically. I don't know why this happens under Linux but it seems that the above is the only available solution. Another advantage is that when one day we have real support for Haskell .dll/.so compilation then I will be able to load the backend package dynamically. I hope that this compilation mode will be available soon. It is already working for MacOS and was working under Windows (currently requires some kind of repairing). The disadvantage is that the user will have to build manually each package. Cabal still doesn't support shipments. Cheers, Krasimir --- Bjorn Bringert <bri...@cs...> wrote: > Robert van Herk wrote: > > I think that Setup.hs in the repos together with > the cabal file could be > > used to compile with GHC 6.4 and PostgreSQL > support. > > > > However, I would like to compile with GHC 6.4, > HSQL, and MySQL (and NO > > PostgreSQL). > > > > When I try runhaskell Setup.hs build, I get: > > > > $ runhaskell Setup.hs build > > Preprocessing library haskelldb-0.9... > > can't find source for > Database.HaskellDB.HSQL.PostgreSQL in ["build/ghc"] > > > > In the output of "runhaskell Setup.hs configure", > I don't see anything > > trying to look for availability of PostgreSQL > either. Is there an easy > > 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 > some backends, and how we should handle > conditionally compiling only > some backends? This is now done with configure, but > using plain Cabal > would be nice. > > Maybe we could always provide all backends, but use > CPP to make the > unavailable ones dummies that fail at runtime? > > /Björn > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Haskelldb-users mailing list > Has...@li... > https://lists.sourceforge.net/lists/listinfo/haskelldb-users > __________________________________ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html |