[Haskell-cafe] Re: HDBC converting a date sql value to UTCTime

2008-06-20 Thread George Moschovitis
Alternatively is there a way to create a UTCTime value from an epoch integer (no of seconds since epoch). I can't find a suitable constructor with Hoogle. thank you in advance, George. On Thu, Jun 19, 2008 at 10:08 PM, George Moschovitis [EMAIL PROTECTED] wrote: Hello, I am HDBC

[Haskell-cafe] HDBC converting a date sql value to UTCTime

2008-06-19 Thread George Moschovitis
Hello, I am HDBC with the Postgres driver. I am trying to read a simple date column from the DB: stmt - DB.prepare conn SELECT date FROM my_table ORDER BY date DESC LIMIT 1 DB.execute stmt [] DB.commit conn rows - fetchAllRows' stmt let ((d:_):_) = rows the d variable is of type: SqlEpochTime

[Haskell-cafe] Haskell FCGI server.

2007-08-03 Thread George Moschovitis
Dear devs, is it possible to create a FCGI server that listens to a specific port using the Haskell FCGI library? The front end web server would then communicate with this back end FCGI server through this port. A small example would be really appreciated. thanks, George. --

Re: [Haskell-cafe] HDBC or HSQL

2007-07-26 Thread George Moschovitis
Ok, I am evaluating HDBC. I wrote a simple test program: ... Can I get a more specific error? Is there a way to inspect this exception more deeply? handleSqlError does the trick, for other newbies: main = handleSqlError $ do dbc - connectPostgreSQL dbname=test user=postgres

[Haskell-cafe] HDBC or HSQL

2007-07-25 Thread George Moschovitis
Dear devs, I am a Haskell newbie and I would like to hear your suggestions regarding a Database conectivity library: HSQL or HDBC ? which one is better / more actively supported? thanks in advance, -g. -- http://phidz.com http://blog.gmosx.com http://cull.gr http://www.joy.gr