How to Install cabal-install on Mac using Brew

Package Information:

Name: cabal-install
Use: Command-line interface for Cabal and Hackage
URL: https://www.haskell.org/cabal/

Installation Steps:

  1. Open Terminal using Spotlight search by pressing <command+space>. Type terminal and hit Enter key.
  2. Now, Execute
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install cabal-install using brew
    brew install cabal-install

cabal-install is ready to use now!