Yes,

This is deliberate, I worked out the _apply1 really wasn't doing anything so I removed it :-)

Tom



Neil Mitchell wrote:
Hi,

I have a sample piece of code:

---
module HeadReverse where

main x = head (reverse x)
---

Which currently when compiled with a Yhc from a few weeks ago
generates the core:

---
module HeadReverse where

HeadReverse.main v139 =
   (Prelude.head ((Prelude.reverse) v139))
---

But I have a cached copy of it, which gives:

---
HeadReverse.main v196 = Prelude.head (YHC.Internal._apply1 Prelude.reverse v196)
--

The cached copy probably comes from about two months ago - was there
any change committed that changes this behaviour intentionally? Which
is the correct behaviour?

Thanks

Neil
_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org//mailman/listinfo/yhc

_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org//mailman/listinfo/yhc

Reply via email to