turn off let floating

Simon Marlow simonmar at microsoft.com
Tue Apr 13 15:03:21 EDT 2004

> On Fri, Apr 09, 2004 at 03:27:01PM +0200, David Sabel wrote:
> > you can turn off let-floating by compiling without optimizations,
> > i.e. without using a -O flag or using -O0 explicitly. 
> > The disadvantage is that most of all other optimizations 
> > are turned off too.
> That is exactly what I'm doing at the moment. The module that has the
> nasty impure bits in it is not compiled with optimisations. 
> I will improve this when GHC regains the non-let floating flag.

If you need -ffull-laziness to force a certain behaviour when using
unsafePerformIO, I say that what you're doing is at the very least
unsupported ;-)  However, there are occasoinally good uses for this:
HOOD is one; I imagine your case is similar?


More information about the Glasgow-haskell-users mailing list