[Haskell-cafe] HToolkit HSQL on Windows/GHC

ATWOOD,JOHN (HP-Corvallis,ex1) john.atwood at hp.com
Fri Mar 26 15:26:34 EST 2004


I see that HaskellDb requires htoolkit, so that's no help.

Doesn't MySql listen on a port? Is that protocol documented? I've used
postgresql that way from Haskell.   

Another thought, which I hesitate to even mention, would be to call the
commandline tool via System.Cmd, pipe the results to a file, and read the
file, and parse the results. Slow and ugly, but you could have it working in
an hour.

Seems like we could even use the higher level abstractions of HSQL or
HaskellDB, but sub in this SlowAndUglyButPortable for the lower level


>From: "Clive Brettingham-Moore" <c at brettingham-moore.net>
>Subject: [Haskell-cafe] HToolkit HSQL on Windows/GHC
>To: <haskell-cafe at haskell.org>
>I realise that this is a little technical for this list, but I thought
>that I'd check here before starting on the hard-core lists.
>Is there an easy way to build the HToolkit HSQL library for GHC (6.0.1 when
>tried, 6.2.1 now) on windows (particularly MySQL/Windows XP, but I wont
>say no to postgres, ODBC & sqlite)?
>I assume people have tired and succeded, but I got lost [I think] in the
>nasty place between the unix/cygwin libraries in GHC and the Windows focus
>of the compiled MySQL client library.
>Since haskell is mainly a hobby for me, and I don't have a lot of free
>time I haven't dug very deep, but not being able to interface my two of my
>favourite constructs (functional programming and relational databases) is
>getting to me.
>So any takers?

More information about the Haskell-Cafe mailing list