> Main.o(.text+0x9c): undefined reference to `PrelBase_Z36g3J_fast3'
That's odd. It's usually a sign that PrelBase.hi and PrelBase.o
weren't generated by the same run of GHC.
You could try doing "make clean; make depend; make" in your ghc/lib
directory.
If that doesn't work we'll need to investigate a little more!
> I am trying to determine to what extent ghc approximates full laziness
GHC implements full laziness more or less as described in our SPE paper
SL Peyton Jones and D Lester, A modular fully-lazy lambda
lifter in Haskell, Software Practice and Experience 21(5),
May 1991, pp479-506.
There's an online version attached to my publications page
(start at http://www.dcs.gla.ac.uk/~simonpj).
There are measurements of its effectiveness in
SL Peyton Jones, WD Partain, A Santos, Let-floating:
moving bindings to give faster programs
Proc International Conference on Functional Programming,
Philadelphia (ICFP'96), May 1996
(online version in the same place)
> The program below compiles and links with -O -prof, but seg-faults
> during execution (it is fine with just -prof) :
Try the fix given on
http://www.dcs.gla.ac.uk/fp/software/ghc/ghc-bugs.html#2.05-mangler
Simon