install haskell stack 1

install haskell stack

curl -sSL https://get.haskellstack.org/ | sh
or
wget -qO- https://get.haskellstack.org/ | sh

Here is what the above code is Doing:
1. The -s flag tells curl to be silent.
2. The -S flag tells curl to show errors if they occur.
3. The -L flag tells curl to follow redirects.
4. The -o flag tells curl to write the output to a file.
5. The – | sh tells curl to pipe the output to sh.
6. The sh command is a shell command.
7. The -qO- flag tells wget to be quiet and to write the output to stdout.
8. The – | sh tells wget to pipe the output to sh.
9. The sh command is a shell command.

Similar Posts