[Haskell-beginners] Definition of last: why complicate it?

Brandon Allbery allbery.b at gmail.com
Fri Apr 4 22:51:11 UTC 2014


On Fri, Apr 4, 2014 at 3:53 PM, Daniel Fischer <
daniel.is.fischer at googlemail.com> wrote:

> With -O2, all GHC versions I tried (6.12.3, 7.0.2, 7.2.2, 7.4.2, 7.6.1,
> 7.6.3)
> produced (almost¹) the more efficient version from the USE_REPORT_PRELUDE
> source, but with only -O, none did.
>

Also worth noting is that ghci does not not have an optimizer; this might
well matter with large lists.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140404/4862c3c9/attachment.html>


More information about the Beginners mailing list