<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 &lt;<a href="mailto:ckkashyap@gmail.com">ckkashyap@gmail.com</a>&gt; wrote:<br>

&gt; Hi,<br>
&gt; I was wondering if this is a defect -<br>
&gt; Prelude&gt; import Data.Time.Calendar<br>
&gt; Prelude Data.Time.Calendar&gt; read &quot;2011-10-10&quot; :: Day<br>
&gt; &lt;interactive&gt;:1:1:<br>
&gt;     No instance for (Read Day)<br>
&gt;       arising from a use of `read&#39;<br>
&gt;     Possible fix: add an instance declaration for (Read Day)<br>
&gt;     In the expression: read &quot;2011-10-10&quot; :: Day<br>
&gt;     In an equation for `it&#39;: it = read &quot;2011-10-10&quot; :: Day<br>
&gt; Prelude Data.Time.Calendar&gt;<br>
&gt;<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>