looking for Database Interface in Haskell
Dear all, we want to access a (MySQL) data base, running on a linux server, from a Haskell program. We planned to use http://www.volker-wysk.de/mysql-hs/ but it depends on earlier versions of hdirect (0.17?) and ghc(-4?). I built hdirect-0.19 (?) (from the ghc CVS) but the Foreign interfaces seem to have changed a bit since mysql-hs-0.10.1 was written. Any hints on what direction to take? Thanks, -- -- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ -- -- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/207 --
On 03 Mar 2003 13:57:06 +0000, Steffen Mazanek <Steffen.Mazanek@UniBw-Muenchen.de> wrote:
Dear all, we want to access a (MySQL) data base, running on a linux server, from a Haskell program.
Have a look here: http://haskell.cs.yale.edu/haskellDB/
A word of warning though from the author :-), HaskellDB is somewhat outdated at the moment and only works with TREX supported systems on windows ODBC databases. It is not so hard to give it a different backend (ie. mySQL) but it is harder to give it a non-TREX type system -- I have ideas about that though and I am planning an update after my thesis is finished, but untill that moment, I don't think it would fit your particular target very well. All the best, Daan.
Johannes Waldmann <joe@isun.informatik.uni-leipzig.de> writes:
Dear all, we want to access a (MySQL) data base, running on a linux server, from a Haskell program. We planned to use http://www.volker-wysk.de/mysql-hs/ but it depends on earlier versions of hdirect (0.17?) and ghc(-4?). I built hdirect-0.19 (?) (from the ghc CVS) but the Foreign interfaces seem to have changed a bit since mysql-hs-0.10.1 was written. Any hints on what direction to take? Thanks,
Also, HToolkit has working but not yet stable support for both postgresql and mysql. I haven't tried the mysql interface myself, but I have tried the postgresql code. It works, but it does explode if you do something unexpected. http://sourceforge.net/projects/htoolkit/ -- Shae Matijs Erisson - 2 days older than RFC0226 #haskell on irc.freenode.net - We Put the Funk in Funktion
Hi, Shae
Also, HToolkit has working but not yet stable support for both postgresql and mysql. I haven't tried the mysql interface myself, but I have tried the postgresql code. It works, but it does explode if you do something unexpected. http://sourceforge.net/projects/htoolkit/
Can you send me examples where the MySQL binding explode? I am interested of improving of the library. Best wishes, Krasimir __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
participants (5)
-
Daan Leijen -
Johannes Waldmann -
Krasimir Angelov -
Shae Matijs Erisson -
Steffen Mazanek