[GHC] #1579: instance Read Integer contradicts Haskell98

GHC trac at galois.com
Thu Aug 2 11:44:17 EDT 2007


#1579: instance Read Integer contradicts Haskell98
-------------------------------+--------------------------------------------
    Reporter:  Isaac Dupree    |        Owner:         
        Type:  bug             |       Status:  new    
    Priority:  normal          |    Milestone:         
   Component:  libraries/base  |      Version:  6.6.1  
    Severity:  normal          |   Resolution:         
    Keywords:                  |   Difficulty:  Unknown
          Os:  Unknown         |     Testcase:         
Architecture:  Unknown         |  
-------------------------------+--------------------------------------------
Comment (by Isaac Dupree):

 (I initially discovered this while QuickCheck-ing an Integer replacement
 that defines `instance Read MyInteger where readsPrec _ = readSigned
 readDec`, against GHC's built-in Integer, and got an inconsistent result.)

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


More information about the Glasgow-haskell-bugs mailing list