[Haskell-cafe] Re: Is a bug?

Linker linker.m.lin at gmail.com
Sun Jul 26 22:54:53 EDT 2009


Sorry.I defined a function :

*GHCi, version 6.10.3: http://www.haskell.org/ghc/  :? for help*
*Loading package ghc-prim ... linking ... done.*
*Loading package integer ... linking ... done.*
*Loading package base ... linking ... done.*
*Prelude> sqrt $ 3 + 4 + 9*
*4.0*
*Prelude> let f $ x = f x*
*Prelude> sqrt $ 3 + 4 + 9*
*14.732050807568877*
*Prelude>*




On Mon, Jul 27, 2009 at 10:50, Linker <linker.m.lin at gmail.com> wrote:

> Hi,All!
>  I find out that diff between GHC and Hugs:
> GHC:
>
> *Prelude> sqrt 3+4+9
> 14.732050807568877
> Prelude> sqrt 16
> 4.0
> Prelude> sqrt $3+4+9
> 14.732050807568877*
>
> Hugs: *Hugs> sqrt $ 3+4+9*
> *4.0*
> *Hugs> sqrt 3+4+9*
> *14.7320508075689*
>
> Which one is right?
> Thanks.
>
>
> --
> Regards,
> Linker Lin
> linker.m.lin at gmail.com
>
>


-- 
Regards,
Linker Lin
linker.m.lin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090726/344544b4/attachment.html


More information about the Haskell-Cafe mailing list