[Haskell-cafe] HDBC-ODBC and SqlValues

Tim Docker twd2 at dockerz.net
Thu Apr 8 03:13:37 EDT 2010


Jason:

Thanks for the reply.

> 
> I suspect the solution is to correctly tell Haskell what type you
> expect and then hopefully HDBC will do the conversion.  For example,
> using fromSql:
> http://software.complete.org/static/hdbc/doc/Database-HDBC.html#v%
> 3AfromSql

Yes. I can use fromSql to convert the result back to an appropriate
numerical type. But internally the numeric data has still been converted
to an intermediate string representation. I'm wondering if this is
intentional, and whether it matters.


Tim





More information about the Haskell-Cafe mailing list