From: Justin B. <jgb...@gm...> - 2009-09-28 19:44:00
|
On Mon, Sep 28, 2009 at 12:33 PM, Colin Paul Adams <co...@co...> wrote: > If I look there, I see Data.Time.Clock.UTCTime, which I guess is what > you are referring to in the line above. But if I try to write such a > record with: > > ct <- getCurrentTime > DB.insert db IT.imageTable (<snip> # IT.uploadTime <<- ct) > > the compiler complains: > > Couldn't match expected type `System.Time.CalendarTime' > against inferred type `UTCTime' > In the second argument of `(<<-)', namely `ct' > In the second argument of `(#)', namely `IT.uploadTime <<- ct' > > How do I control this with a signature? Can you send the type definition for ImageTable (aliased as IT in your code)? That will help me answer your question. > -- > Colin Adams > Preston Lancashire > |