> import Data.Time
> import Data.Time.Clock
> import System.Locale
>
> main = print (parseTime defaultTimeLocale "%e %B %Y" "April 2000" ::
> Maybe Day)
> -- Just *** Exception: Prelude.read: no parse
Specifically:
> parseTime defaultTimeLocale "%e" "" :: Maybe Day
> -- Just *** Exception: Prelude.read: no parse
In time-1.2.0.4, they now correctly evaluate to Nothing. I've updated
the unit tests to catch this too.
--
Ashley Yakeley
_______________________________________________
Haskell mailing list
Has...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell