EnumFromThen

View: New views
2 Messages — Rating Filter:   Alert me  

EnumFromThen

by hanatani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I found a bug in nhc98-1.18.

$ diff src/prelude/Prelude/Enum_Integer.hs src/prelude/Prelude/Enum_Integer.hs
~
14c14
<   enumFromThen x y = x : enumFromThen y (2*y-x)
---
>   enumFromThen x y = x : enumFromThen y (2*y+x)

--
Yoichi Hanatani

_______________________________________________
Nhc-bugs mailing list
Nhc-bugs@...
http://www.haskell.org/mailman/listinfo/nhc-bugs

Re: EnumFromThen

by Malcolm.Wallace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hanatani@... wrote:

> I found a bug in nhc98-1.18.

Yes indeed!  I wonder how that one escaped attention for so long...

> $ diff src/prelude/Prelude/Enum_Integer.hs src/prelude/Prelude/Enum_Integer.hs
> 14c14
> <   enumFromThen x y = x : enumFromThen y (2*y-x)
> ---
> >   enumFromThen x y = x : enumFromThen y (2*y+x)

Your patch format is the wrong way round, but I get the idea.
Thanks!

Regards,
    Malcolm
_______________________________________________
Nhc-bugs mailing list
Nhc-bugs@...
http://www.haskell.org/mailman/listinfo/nhc-bugs
LightInTheBox - Buy quality products at wholesale price