--with-hc only configures what's used to compile 'generic' Haskell
code (i.e., not the contens of ghc/compiler). (As Simon suggests),
use --with-ghc to control what GHC to to use to compile the
compiler bits, i.e.,
./configure --with-ghc=/usr/local/bin/ghc-5.02.2 \
Ok, I configured ghc-5.02.2 using the option
--with-hc=/usr/local/bin/ghc-5.02.2.Then, when I compiled it, sometime it
would use /usr/local/bin/ghc-5.02.2, and sometimes it would use /usr/bin/ghc,
which is ghc-4.08.1 that was supplied with my Debian system.
Then, I changed my path to