
27 Dec
2011
27 Dec
'11
8:41 a.m.
I'm still learning Haskell and I've started learning Yesod. I pretty much built a blog before I came this silly roadblock. Whenever I create a new post, I want it take the current system time as its creation time. I understand it's an impure operation and it must go into the IO Monad to be performed. But, in Yesod, your handler is of the type Handler RepHtml. I don't get how you could get the impure value into a pure function without main playing any part. Here's the link for my blog: http://hpaste.org/55757#line85 -- Warm Regards, AbdulSattar Mohammed