When installing python 3.8, haskell was installed
Solution 1:
Your command installed haskell because it is a badly formed command. As the installation log says:
Note, selecting ... for regex '3.8'
because sudo apt install python 3.8
splits python3.8 into two separate arguments, python
and 3.8
which is a typo error that caused 2GB of unnecessary packages to be installed. All the packages that are listed after The following additional packages will be installed:
didn't need to be installed and can be safely removed with sudo apt remove
followed by the whole list of packages that didn't need to be installed.
The commands to install Python 3.8 in Ubuntu 18.04 are:
sudo update
sudo apt install python3.8