Mandrake (and redhat and probably others) compile ncurses without the
"--with-termlib" option. The "--with-termlib" option splits ncurses into
two: libncurses and libtinfo. It's not "wrong" to do it one way or the
other, but applications compiled against it need to match.
In other words, grab a source rpm from somewhere and try rebuilding on
your machine it
but the key thing here is how did you install ncurses( depends on your distro) and how did you install Haskell ghci