Okay, so I'm trying to learn how to code in haskell because it's delicious compared to C. My problem is that I've no idea how to set it up after downloading it from the official GHC site: https://www.haskell.org/ghc/download_ghc_7_6_3
I downloaded this version and extracted it, and then followed these steps in the terminal: https://www.haskell.org/downloads/linux, which are the following:
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update
sudo apt-get install -y cabal-install-1.22 ghc-7.6.3
cat >> ~/.bashrc <<EOF
export PATH="\$HOME/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.6.3/bin:\$PATH"
EOF
export PATH=~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.6.3/bin:$PATH
Terminal didn't recognize the command "cat"...reported the following:
bash: export: `/.cabal/bin:/opt/ghc/7.6.3/bin:': not a valid identifier
bash: warning: here-document at line 120 delimited by end-of-file (wanted `EOF')
Command 'cat' is available in '/bin/cat'
The command could not be located because '/bin' is not included in the PATH environment variable.
cat: command not found
It also didn't couldn't install "software-properties-common", whatever that is. I then downloaded Stack, but I don't know what to do with it. The instructions say to put it into the PATH, but I don't know how.
haskell-platform
metapackage direct from the universe repository?