<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Mar 17, 2011 at 12:30 AM, C K Kashyap <<a href="mailto:ckkashyap@gmail.com">ckkashyap@gmail.com</a>> wrote:<br>
> Hi,<br>
> I was wondering if this is a defect -<br>
> Prelude> import Data.Time.Calendar<br>
> Prelude Data.Time.Calendar> read "2011-10-10" :: Day<br>
> <interactive>:1:1:<br>
> No instance for (Read Day)<br>
> arising from a use of `read'<br>
> Possible fix: add an instance declaration for (Read Day)<br>
> In the expression: read "2011-10-10" :: Day<br>
> In an equation for `it': it = read "2011-10-10" :: Day<br>
> Prelude Data.Time.Calendar><br>
><br>
<br>
</div>I see the same problem with GHC 7.0.2, time-1.2.0.3.<br>
<br>
Does it work if you use it in a Haskell source file, instead of GHCi?<br>
<br>
Thanks,<br>
Antoine<br>
<div class="im"><br></div></blockquote><div><br></div><div>Nope, even compiling with ghc causes the error.</div><div>Regards,</div><div>Kashyap </div></div>