Re: [Haskell-cafe] HToolkit HSQL on Windows/GHC

2004-03-29 Thread Keith Wansbrough
  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.
 
 Hadn't even thought of that, must be my clean upbringing.

No need even to use a file; just have it output to a pipe and read directly from the 
pipe...

--KW 8-)
-- 
Keith Wansbrough [EMAIL PROTECTED]
http://www.cl.cam.ac.uk/users/kw217/
University of Cambridge Computer Laboratory.

___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HToolkit HSQL on Windows/GHC

2004-03-29 Thread Graham Klyne
At 10:59 29/03/04 +0100, Keith Wansbrough wrote:
  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.

 Hadn't even thought of that, must be my clean upbringing.
No need even to use a file; just have it output to a pipe and read 
directly from the pipe...
Like POpen for GHC/Posix?  I'm having some trouble getting this to work for 
Hugs/Windows (even though the basic piping code for Windows is demonstrated 
to work).

#g


Graham Klyne
For email:
http://www.ninebynine.org/#Contact
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HToolkit HSQL on Windows/GHC

2004-03-28 Thread Clive Brettingham-Moore
 Doesn't MySql listen on a port? Is that protocol documented? I've used
 postgresql that way from Haskell.

Yes It's usually operated through a TCP/IP (port 3306), and I'd
contemplated this, but I was hoping for something standard and off the
shelf.

 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.

Hadn't even thought of that, must be my clean upbringing.

Somone on the haskell list pointed out that ODBC works so I can just use
that. It's a bit less tidy since I'll have to define ODBC data sources
instead of connecting direct, but I'll live (atleast until I [or better,
somone else] get around to fixing the library problem)

C



___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] HToolkit HSQL on Windows/GHC

2004-03-26 Thread ATWOOD,JOHN (HP-Corvallis,ex1)
Clive,

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
access.


John

From: Clive Brettingham-Moore [EMAIL PROTECTED]
Subject: [Haskell-cafe] HToolkit HSQL on Windows/GHC
To: [EMAIL PROTECTED]

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
I
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?

C

___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] HToolkit HSQL on Windows/GHC

2004-03-24 Thread Clive Brettingham-Moore
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 I
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?

C


___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe