According to https://www.haskell.org/ghcup/install/#system-requirements, the packages libncurses5 and libtinfo5 are required.
These packages are obsolete and unobtainable.
GHCUP can be installed and works without them (Mint 22.1).
Suggest removing them from the requirements.