[Haskell-cafe] Data.Time.Calendar.Day does not seem to have an instance for Read

C K Kashyap ckkashyap at gmail.com
Thu Mar 17 12:30:32 CET 2011


>
>
> So then it's not a bug. The instance is defined in
> Data.Time.Format.Parse, and Data.Time.Calendar doesn't import that
> module.
>
> This, however is a bug, I think:
>
> Prelude> import Data.Time
> Prelude Data.Time> read "2011-10-10" :: Day
>
> ... no instance for (Read Day) ...
>
> Prelude> :m +Data.Time
> Prelude Data.Time> read "2011-10-10" :: Day
> 2011-10-10
>
>
> Erik
>

Thanks Erik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110317/f7758a4d/attachment.htm>


More information about the Haskell-Cafe mailing list