If libtinfo5 isn't installed, then installation fails with a message like this:
/home/ubuntu/.ghcup/ghc/8.6.5/lib/ghc-8.6.5/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
If xz-utils isn't installed, then installation fails with a message like this:
Following commands are required, but missing, please install: xz