[GHC] #14377: some results not expected with the addition

GHC ghc-devs at haskell.org
Mon Oct 23 18:32:59 UTC 2017


#14377: some results not expected with the addition
-------------------------------------+-------------------------------------
        Reporter:  vanto             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by vanto):

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


Comment:

 Replying to [[span(style=color: #FF0000, svenpanne )]]. \\
 not at all. not at all.\\
 in his book entitled "Thinking Functionally with Haskell" Richard Bird
 says page 12-13:\\

 {{{
 One of the tools is an interactive calculator, called GHCi...You can
 now use GHCi as a super-calculator:
 Prelude> 3^5
 243
 }}}
 when I write {{{Prelude> 1.1+2.2}}}, the answer is
 {{{3.3000000000000003}}} \\
 But if I use Hugs 98 (Haskell 98 Compatability): \\
 when I write {{{Hugs> 1.1+2.2}}}, the answer is \\
 {{{3.3 :: Double(32 reductions, 75ells)}}}

 that's all.\\
 and you do not see any difference in these two results.\\
 Stubborn?\\

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


More information about the ghc-tickets mailing list