[Haskell-cafe] HaskellDB Convertible Exception: incompatible types

Andras Gyomrey lgandras at gmail.com
Sat Sep 29 23:56:10 CEST 2012


Hi,

I get

*** Exception: Convertible: error converting source data SqlLocalTime
2012-04-27 10:22:15 of type SqlValue to type
Data.Time.LocalTime.LocalTime.ZonedTime: incompatible types

when i try to show a record with a field of type CalendarTime
(automatically generated by Database.HaskellDB.DBDirect, Mysql database
type is "timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP"

I already looked forhttp://
haskell.1045720.n5.nabble.com/programmatic-DB-interface-td3120759.html. But
the problem there is about a regexp (not a type). And the incompatible type
problem was caused because of a concatenation. Here, as you can see, i have
no idea what's going on.

Can someone please help me?

Andras
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120929/8eb82ca2/attachment.htm>


More information about the Haskell-Cafe mailing list