Install Cabal On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

Install Cabal On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

cabal

Command line interface to the Haskell package infrastructure (Cabal).
Manage Haskell projects and Cabal packages from the Hackage package repository.

Maintainer: Debian Haskell Group



Section: haskell

Install cabal

  • Debian apt-get install cabal-install Click to copy
  • Ubuntu apt-get install cabal-install Click to copy
  • Arch Linux pacman -S cabal-install Click to copy
  • Kali Linux apt-get install cabal-install Click to copy
  • Fedora dnf install cabal-install Click to copy
  • Raspbian apt-get install cabal-install Click to copy
  • macOS brew install cabal-install Click to copy

Command line interface to the Haskell package infrastructure (Cabal). Manage Haskell projects and Cabal packages from the Hackage package repository.

How to use cabal?

Below are few example commands for cabal that you can use in the terminal.

Search and list packages from Hackage:
cabal list search_stringClick to copy
Show information about a package:
cabal info package_nameClick to copy
Download and install a package:
cabal install package_nameClick to copy
Create a new Haskell project in the current directory:
cabal initClick to copy
Build the project in the current directory:
cabal buildClick to copy
Run tests of the project in the current directory:
cabal testClick to copy
Install the latest version of cabal in Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the cabal just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of cabal from the respository and install it in your computer/server.