[Haskell-cafe] Differences in optimisiation with interactive and compiled mode

Henning Thielemann lemming at henning-thielemann.de
Mon Dec 12 11:27:27 EST 2005


On Sat, 10 Dec 2005, Tomasz Zielonka wrote:

> On Thu, Dec 08, 2005 at 06:38:45PM +0100, Henning Thielemann wrote:
>>
>> On Thu, 8 Dec 2005, Branimir Maksimovic wrote:
>>
>>> program performs search replace on a String
>>
>> http://www.haskell.org/pipermail/haskell-cafe/2005-April/009692.html
>
> Neat!
>
> However, it breaks the following nice (but perhaps not useful?) property:
>
>    replace x y z == reverse (replace (reverse x) (reverse y) (reverse z))

It replaces things that are already replaced. So it is not quite correct.


More information about the Haskell-Cafe mailing list