1, installation GHC
: https://www.haskell.org/ghc/download_ghc_8_0_1#linux_x86_64
Installation steps: Tar xvf ghc_xxx
CD ghc_xxx
./confiure
Make install (takes about 30 minutes)
2, Installation Cabal-install
: Http://hackage.haskell.org/package/cabal-install
Installation Preparation: yum-y Install Gmp-devel Zlib-devel
Installation steps: Tar xvf cabal
CD Cabal
./bootstrap.sh (takes approximately 1 hours)
Installation configuration: Edit/etc/profile Add cabal installation path after path/root/.cabal/bin, and then execute source/etc/profile to make the configuration take effect
3, Installation Shellcheck
Installation steps: Git clone https://github.com/koalaman/shellcheck
CD Shellcheck
Cabal install (takes about half an hour)
4. Basic Use Method
Shellcheck upgradednas.sh
Shellcheck-f GCC upgradednas.sh
Centos 7 Installation Shellcheck