re-evaluating CAFs in ghc

Simon Marlow simonmar@microsoft.com
Fri, 26 Jul 2002 12:03:34 +0100


> Is there any way to trick ghc into causing CAFs to
> be re-evaluated upon each reference to them? (specifically
> without adding arguments to it so that it is no longer a CAF).
>=20
> I know this sounds like a dodgy hack ...

Apart from hacking the compiler to remove the update frame from CAFs
(which isn't difficult), no.

In GHCi you can cause CAFs to be thrown away after each evaluation by
saying ':set +r'.

Cheers,
	Simon