#6139: Data.Time.Day read instance too liberal
-----------------------------------------+----------------------------------
 Reporter:  guest                        |          Owner:                  
     Type:  bug                          |         Status:  new             
 Priority:  normal                       |      Component:  libraries/base  
  Version:  7.0.3                        |       Keywords:                  
       Os:  Unknown/Multiple             |   Architecture:  Unknown/Multiple
  Failure:  Incorrect result at runtime  |       Testcase:                  
Blockedby:                               |       Blocking:                  
  Related:                               |  
-----------------------------------------+----------------------------------

Comment(by guest):

 No, it's

 {{{
 Prelude Data.Time> read "0001-22-01" :: Day
 0001-12-01
 }}}

 Faulty month 22 is parsed as 12.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6139#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to