RE: Cleaning up rather silly static arguments

2014-09-16 Thread Simon Peyton Jones
://ghc.haskell.org/trac/ghc/ticket/9374 Simon From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of David Feuer Sent: 16 September 2014 03:03 To: ghc-devs Subject: Cleaning up rather silly static arguments Aside from anything having to do with the foldrW/buildW stuff, I decided to try a little

Cleaning up rather silly static arguments

2014-09-15 Thread David Feuer
Aside from anything having to do with the foldrW/buildW stuff, I decided to try a little experiment using fusing scanl and reverse (implementations at http://lpaste.net/2416758997739634688 ) When I define scanr f b = reverse . scanl (flip f) b . reverse I get this: scanr1 scanr1 = \ @ a_akP _