On Nov 28, 2007 1:11 PM, manu <[EMAIL PROTECTED]> wrote:

> Hello
>
> I've spent a few days trying to install all the packages required to
> use HaskellDB with either MySQL or SQlite3
> (the only 2 DB the host I was thinking about is supporting)
>
> Well, I am giving up ! I seriously regret replacing ghc-6.6 with
> ghc-6.8, I didn't expect that building packages would be so ...
> unsucessfull and time-wasting.
>
> I just thought I'd let you know what's in store for "PHP-style-users-
> like-me" who want to use a database with ghc-6.8.1 at the moment, the
> hurdle is high !
>
> I hope these packages will be fixed soon (I can't figure how to fix
> them myself obviously).
>
> And now I'm going to stay away from my computer for a while :)
>
> cheerio
>
> M
>
>
Hi Manu,

I built HSQL MySQL on Windows using GHC-6.8.1. I had to replace the
Setup.lhs file be able to build with Cabal-1.2.2.0 (I found a working one on
the web) and had to modify the cabal file (build-depends list). If you're
interested I attached a copy of the two files.

HSQL also comes with a SQLite module but I didn't tried it.

The problems I encountered when compiling using GHC 6.8.1 are almost always
the same and are very well described in this document:
http://haskell.org/haskellwiki/Upgrading_packages.

Usually you just have to adapt the build-depends list and change the imports
of Data.ByteString.Base which was split in Internal and Usafe. It sometimes
requires some try/error iterations.

Using this information I was able to build many modules on Win32 / GHC
6.8.1without problems (HTTP, HaXmL, polyparse, exif, gtk2hs, hxt,
regex-pcre,
compact-string). It can be more complicated when the package do not use a
simple build script (as was the case for HSQL).

Best regards,

Olivier.

Attachment: HSQL-MySQL-6.8.1.tar.gz
Description: GNU Zip compressed data

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to