Replace core packages "haskeline" and "terminfo".

Without these, dependents fail to link the ncurses library.