RE: rule and binding

1999-05-13 Thread D. Tweed
On Thu, 13 May 1999, Simon Peyton-Jones wrote: > I'm not sure exactly what you are asking here. > > For example, in {rules (map f).(map g) = map (f.g) } > > f xs = let g = ... > > h = ... > > h1 = map g > >

RE: rule and binding

1999-05-13 Thread Simon Peyton-Jones
> Are ($) and (.) actually treated specially within ghc then > and optimized > away from the rules? If so then rule rewriting becomes more > powerful than > I'd thought, beacuse the one of the problems I thought was > there was that > the idea that `several maps can be be turned into a single

rule and binding

1999-05-13 Thread S.D.Mechveliani
Hello, Maybe, a naive question, but how the compiler *rules* are expected to relate to binding? For example, in {rules (map f).(map g) = map (f.g) } f xs = let g = ... h = ... h1 = map g

RE: rule and binding

1999-05-13 Thread Simon Peyton-Jones
I'm not sure exactly what you are asking here. > For example, in {rules (map f).(map g) = map (f.g) } > f xs = let g = ... > h = ... > h1 = map g > h2 = map h >