Feldspar/feldspar-compiler — pull request #37 by pjonsson (2012-12-28 14:44:45+00:00)
Title: Retire the BlockProgramHandler.

We have a WriterMonad at hand; use that infrastructure immediately instead of performing a program transformation at the end when floating variable declarations.

The decision of what declarations that should float and when isn't obvious. The patch has a guard which is currently set to True, but configuration options should come in hand there. The reason I left things that open is that I'm not sure what the configuration options should be. Instead of letting that block the retirement of the BlockProgramHandler I made a hacky version that mimics the current behavior and allows us to easily change things when we have a better understanding of what we need.