haskell-packages.nix: fix builds of 'terminfo' and 'readline'

These builds depend on the ncurses library, but that package was
shadowed when the 'ncurses' Haskell library was added.