[Haskell-cafe] HaskellDB/ODBC/MySQL issue

2010-10-19 Thread Neil Davies
Hi

I can't seem to get the combination of HaskellDB/ODBC/MySQL to even get off the 
ground, example:

import OmlqDBConnectData (connect'options)
import Database.HaskellDB
import Database.HaskellDB.HDBC.ODBC (odbcConnect)
import Database.HaskellDB.Sql.MySQL (generator)

main = odbcConnect generator connect'options 
  $ \db - tables db = print

gives me 

Prelude.(!!): index too large

Suggestions?

Cheers

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


Re: [Haskell-cafe] HaskellDB/ODBC/MySQL issue

2010-10-19 Thread Christopher Done
On 19 October 2010 18:51, Neil Davies semanticphilosop...@gmail.com wrote:
 Hi

 I can't seem to get the combination of HaskellDB/ODBC/MySQL to even get off 
 the ground, example:

 import OmlqDBConnectData (connect'options)
 import Database.HaskellDB
 import Database.HaskellDB.HDBC.ODBC (odbcConnect)
 import Database.HaskellDB.Sql.MySQL (generator)

 main = odbcConnect generator connect'options
      $ \db - tables db = print

 gives me

 Prelude.(!!): index too large

I ran a search for '!!' in HaskellDB and came up with nothing related.
Maybe you could search the ODBC or MySQL libraries for this. There
shouldn't be many instances of it (in fact in my opinion people
shouldn't use this non-total function at all). I've found the
HaskellDB libraries to be pretty easy to grok. Even if the bugs are
not. I'm using it with PostgreSQL.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe