[GHC] #7045: the compiler and the library functions should read literals in the same way

GHC cvs-ghc at haskell.org
Tue Jul 3 16:16:45 CEST 2012


#7045: the compiler and the library functions should read literals in the same way
-------------------------------+--------------------------------------------
  Reporter:  maeder            |          Owner:                  
      Type:  bug               |         Status:  closed          
  Priority:  normal            |      Milestone:                  
 Component:  Compiler          |        Version:  7.4.2           
Resolution:  invalid           |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:  #7044           
-------------------------------+--------------------------------------------
Changes (by pcapriotti):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid


Comment:

 According to the Haskell Report, floating point literals need to be
 converted to `Rational`, and desugared to `fromRational value :: forall a
 . Fractional a => a`.

 So, in particular, any floating point literal is a valid value of type
 `Rational`. I don't think this should be changed.

 Feel free to reopen if you disagree.

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



More information about the Glasgow-haskell-bugs mailing list