[GHC] #6139: Data.Time.Day read instance too liberal
GHC
cvs-ghc at haskell.org
Wed Jun 6 11:54:08 CEST 2012
#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
More information about the Glasgow-haskell-bugs
mailing list